Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Basic Q: reading properties from nil
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Basic Q: reading properties from nil



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.

TIA,
Rick

_______________________________________________

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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.