Re: NSWindowController that closes itself
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