• 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
Re: NSWindowController that closes itself
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSWindowController that closes itself


  • Subject: Re: NSWindowController that closes itself
  • From: Ondra Cada <email@hidden>
  • Date: Wed, 14 Nov 2001 11:05:56 +0100

Erik,

>>>>>> Erik M. Buck (EMB) wrote at Tue, 13 Nov 2001 22:00:24 -0600:
EMB> Testing (nil != delegate) is much more important that avoiding
EMB> sending -respondsToSelector: to nil since Apple could introduce a "nil
EMB> object" that has an address other than 0 yet any message to nil will
EMB> still return nil

I personally don't think so.

Let's skip any arguments what complies with ObjC specs and what not; in
practice though I am afraid there are so many lines of kind "if (anObject)",
"while (obj=[en nextObject])", etc., that it would actually be on edge of
introducing a new, completely incompatible API ;)
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
2K Development: email@hidden http://www.2kdevelopment.cz
private email@hidden http://www.ocs.cz/oc


References: 
 >Re: NSWindowController that closes itself (From: "John C. Randolph" <email@hidden>)
 >Re: NSWindowController that closes itself (From: "Erik M. Buck" <email@hidden>)

  • Prev by Date: Re: Making SEARCH work for you... Re: Support for split panes?
  • Next by Date: Re: Help "duplicating\spawning" a window
  • Previous by thread: Re: NSWindowController that closes itself
  • Next by thread: Re: NSWindowController that closes itself
  • Index(es):
    • Date
    • Thread