FROM : James Dessart
DATE : Tue Dec 21 17:11:51 2004
On Tue, 21 Dec 2004 09:33:56 -0600, Brendan Younger <<email_removed>> wrote:
> That's correct. NSApp will load your nib before
> -(void)applicationDid/WillFinishLaunching is ever called. To be
> absolutely sure that your transformer is registered, you can call
> [NSValueTransformer setValueTransformer:forName:] in your main()
> function, before the call to NSApplicationMain(), or you can override
> +(void)initialize in your application's delegate and register it there.
Thanks, I took the second option. However now it seems to fail with
the following exception:
2004-12-21 11:08:44.139 AdminTool[1069] *** Uncaught exception:
<NSInternalInconsistencyException> Cannot create BOOL from object ()
of class NSCFArray
My value transformer returns NSNumber as the transformedValueClass,
and the enabled attribute of a button is bound to the selectedObjects
array of an NSArrayController. Well, it's more than one button, but
I'm guessing that any one of those could be causing the exception.
Thanks again,
James
DATE : Tue Dec 21 17:11:51 2004
On Tue, 21 Dec 2004 09:33:56 -0600, Brendan Younger <<email_removed>> wrote:
> That's correct. NSApp will load your nib before
> -(void)applicationDid/WillFinishLaunching is ever called. To be
> absolutely sure that your transformer is registered, you can call
> [NSValueTransformer setValueTransformer:forName:] in your main()
> function, before the call to NSApplicationMain(), or you can override
> +(void)initialize in your application's delegate and register it there.
Thanks, I took the second option. However now it seems to fail with
the following exception:
2004-12-21 11:08:44.139 AdminTool[1069] *** Uncaught exception:
<NSInternalInconsistencyException> Cannot create BOOL from object ()
of class NSCFArray
My value transformer returns NSNumber as the transformedValueClass,
and the enabled attribute of a button is bound to the selectedObjects
array of an NSArrayController. Well, it's more than one button, but
I'm guessing that any one of those could be causing the exception.
Thanks again,
James
| Related mails | Author | Date |
|---|---|---|
| James Dessart | Dec 21, 16:28 | |
| Brendan Younger | Dec 21, 16:33 | |
| James Dessart | Dec 21, 17:11 | |
| Johan Kool | Jan 16, 17:59 | |
| mmalcolm crawford | Jan 16, 18:55 |






Cocoa mail archive

