• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NULL SEL arguments in Jaguar?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: NULL SEL arguments in Jaguar?
      • From: Ali Ozer <email@hidden>
  • Prev by Date: SmallSockets: OnConnection
  • Next by Date: Re: EXC_BAD_ACCESS in an strange place
  • Previous by thread: SmallSockets: OnConnection
  • Next by thread: Re: NULL SEL arguments in Jaguar?
  • Index(es):
    • Date
    • Thread