Re: NSAllowsNullArgument undefined?
Re: NSAllowsNullArgument undefined?
- Subject: Re: NSAllowsNullArgument undefined?
- From: SA Dev <email@hidden>
- Date: Tue, 11 Oct 2005 09:17:47 -0400
Ah, those quick solutions. Evidently, you use the constants as
strings:
NSDictionary * bindOpts = [NSDictionary
dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES],
@"NSAllowsNullArgument", nil];
(sigh) ... I've filed a doc enhancement request.
- SADev
On Oct 11, 2005, at 8:59 AM, SA Dev wrote:
List:
I'm trying to create an options dictionary for manual bindings. I
want to enable null arguments. According to the bindings reference
for many controls, "NSAllowsNullArgument" can be an NSNumber with a
bool value.
Unfortunately, the compiler croaks at the following line:
NSDictionary * bindOpts = [NSDictionary
dictionaryWithObjectsAndKeys:[NSNumber numberWithBool:YES],
NSAllowsNullArgument, nil];
The error is as follows:
error: 'NSAllowsNullArgument' undeclared (first use in this function)
How am I supposed to use this constant? Is there a header I must
include? Where is this documented?
Thanks,
- SADev
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40silentalcove.net
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden