Re: NULL SEL arguments in Jaguar?
Re: NULL SEL arguments in Jaguar?
- Subject: Re: NULL SEL arguments in Jaguar?
- From: Ali Ozer <email@hidden>
- Date: Sun, 25 Aug 2002 00:40:32 -0700
>
I am not sure off the top of my head, but I believe there are a few
>
cases where this applies in the AppKit, such as nil actions, etc ---
>
hence the warning in the AppKit relnotes. You're right that it would
>
have been a good idea to include this in the Foundation release notes
>
as well, as it does apply to NSObject methods.
And just to clarify, it actually turns out the Foundation relnotes do
say this; I thought from your email you said it didn't (although you
didn't):
Methods and Functions which take SEL Arguments Now Check for NULL
The Foundation has been inconsistent in its handling of NULL SEL
arguments in the past. Foundation now raises in all functions and
methods, like NSArray's -sortedArrayUsingSelector:, that take SEL
arguments if the SEL argument is 0, for applications linked on or after
10.2. The exception is the conversion function NSStringFromSelector(),
which returns nil for a 0 SEL (as it did prior to 10.2).
Ali
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.