• 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: Basic Q: reading properties from nil
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Basic Q: reading properties from nil


  • Subject: Re: Basic Q: reading properties from nil
  • From: "Sean McBride" <email@hidden>
  • Date: Tue, 26 Oct 2010 17:38:58 -0400
  • Organization: Rogue Research Inc.

On Tue, 26 Oct 2010 14:13:23 -0700, Rick Mann said:

>Hi. I've run into a bug, and I'm wondering if I'm expecting the wrong
>behavior. If I do this:
>
>UIWindow* win = nil;	//  In reality, it's coming from somewhere else,
>but it's nil
>CGRect frame = win.bounds;
>
>Should I expect frame to be all zero? That's what I thought was the
>case, but I'm getting nonsense values that are not zero.

See also:
<http://www.sealiesoftware.com/blog/archive/2007/4/21/
objc_explain_return_value_of_message_to_nil.html>

--
____________________________________________________________
Sean McBride, B. Eng                 email@hidden
Rogue Research                        www.rogue-research.com
Mac Software Developer              Montréal, Québec, Canada


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Basic Q: reading properties from nil (From: Rick Mann <email@hidden>)

  • Prev by Date: Re: Basic Q: reading properties from nil
  • Next by Date: Re: Basic Q: reading properties from nil
  • Previous by thread: Re: Basic Q: reading properties from nil
  • Next by thread: Unrecognized selector
  • Index(es):
    • Date
    • Thread