NULL SEL arguments in Jaguar?
NULL SEL arguments in Jaguar?
- Subject: NULL SEL arguments in Jaguar?
- From: Bill Cheeseman <email@hidden>
- Date: Sat, 24 Aug 2002 13:26:59 -0400
Can anybody shed some light on this conundrum? --
The AppKit release notes for Jaguar say this, under the heading "SEL
Arguments":
"Foundation has been inconsistent in its handling of NULL SEL arguments in
the past. In 10.2, for applications linked on 10.2 or later, Foundation
raises exceptions in all functions and methods (such as NSObjects
-respondsToSelector:) that take SEL arguments if the SEL argument is NULL."
I don't understand why this note is in the AppKit release notes, if it only
applies to Foundation.
It apparently does not in fact apply to the AppKit. For example, the
NSBeginAlertSheet() function in the AppKit takes two SEL parameters,
didEndSelector and didDismissSelector, and the documentation has always said
you should pass NULL in either of these parameters that you don't use. I do
this, and I get no exceptions.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
The AppleScript Sourcebook -
http://www.AppleScriptSourcebook.com
Vermont Recipes -
http://www.stepwise.com/Articles/VermontRecipes
Croquet Club of Vermont -
http://members.valley.net/croquetvermont
_______________________________________________
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.