Re: NSDecimalNumber seen as NSCFNumber; a bug? (not solved)

2009-01-09 Thread Davide Benini
09/gen/09, alle ore 01:27, Quincey Morris ha scritto: On Jan 8, 2009, at 08:49, Davide Benini wrote: And here the application terminates and I get this error message *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSCFNumber decimalN

Re: Resetting the TableView

2009-01-08 Thread Davide Benini
Hi, note that viewDidLoad gets called only the first time the view is loaded (thence its use or setting the hierarchy, things that don't change). Also, note the implementation of viewWillAppear:animated: -(void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated];

NSDecimalNumber seen as NSCFNumber; a bug?

2009-01-08 Thread Davide Benini
Hello folks, I have run into a strange issue. I have a LineItem class featuring a NSDecimalNumber *unitaryPrice property. The property works allright all across my app, except in a single view controller. I have this LineItemDataPickerViewController (UIViewController subclass) with @prop

Fwd: Use of a int type property

2008-03-29 Thread Davide Benini
ns) As you said, an integer was used as an id. Thanks, Davide AIl giorno 29/mar/08, alle ore 20:55, Quincey Morris ha scritto: On Mar 29, 2008, at 12:15, Davide Benini wrote: Here is MyClass.h file @interface MyClass : NSObject { int repetitions; NSMutableArray *body;

Use of a int type property

2008-03-29 Thread Davide Benini
In a previous conversation I realised that I can use any tipe as a property. As a consequence, I decided to use a simple int type for a "repetitions" property of MyClass, instead of a NSNumber. I changed my code accordingly, but the changes generated a strange bug. As soon as I set my int p

Re: how to check if a property is empty?

2008-03-29 Thread Davide Benini
There's no intrinsic "initialized but empty" state of Objective C objects. 'variantEnding' can be initialized to nil (or, rather, allowed to remain nil, since everything in a new object is guaranteed to be zeroes) or it can be given a NSNumber value. I half suspected something like this

how to check if a property is empty?

2008-03-29 Thread Davide Benini
Hello folks. I have a class with a number of properties. Some of them are used only in specific instances. I need to check whether these properties have been assigned a value; I am thinking about a method similar to isset in php. I alloc and init properties in the genral init methid; I relea

Re: Unable to access an instance properties and methods

2008-03-19 Thread Davide Benini
e Il giorno 19/mar/08, alle ore 17:40, Julien Jalon ha scritto: I'd bet the firstNote object is not a "DBNNote" instance but an NSString instance. On Wed, Mar 19, 2008 at 5:33 PM, Davide Benini <[EMAIL PROTECTED]> wrote: Hello folks. I receive an exception message and my

Unable to access an instance properties and methods

2008-03-19 Thread Davide Benini
Hello folks. I receive an exception message and my application exits whenever I try to access properties or methods of an instance of DBNNote, a custo made class. Here is the code: DBNNote *firstNote= [[tune body] objectAtIndex:0]; NSLog(@"%@", firstNote); NSLog(@"%@", [firstNote accid

Re: Where are the system spellchecker prefs stored?

2008-03-12 Thread Davide Benini
t doable :) Thanks for the clarification, Davide PS: if ye have any other idea on how to accomplish this, please suggest Il giorno 12/mar/08, alle ore 18:09, Douglas Davidson ha scritto: On Mar 12, 2008, at 10:02 AM, Davide Benini wrote: I realized the question was not well put. Basically, I

Re: Where are the system spellchecker prefs stored?

2008-03-12 Thread Davide Benini
ce is not stored in a plist... What do you think? Cheers, Davide Il giorno 12/mar/08, alle ore 16:50, Douglas Davidson ha scritto: On Mar 12, 2008, at 7:48 AM, Davide Benini wrote: Do you know where the system spellchecker language preferences are stored? I would like the access the spell ch

Where are the system spellchecker prefs stored?

2008-03-12 Thread Davide Benini
Hello folks. Do you know where the system spellchecker language preferences are stored? I would like the access the spell checker and programatically change its "set" language. I thought I would find a plist, I've done a few spotlight searches, but no luck so far. Any help will be appreciat