Re: NSDrawer contentView
Re: NSDrawer contentView
- Subject: Re: NSDrawer contentView
- From: Don Arbow <email@hidden>
- Date: Sun, 4 Jan 2004 20:01:51 -0800
On Jan 4, 2004, at 7:06 PM, Daniel Todd Currie wrote:
I have the following code:
NSLog(@"content bounds = %@", [[inspectorDrawer contentView] bounds]);
This returns (null). If I try the same thing with "frame" instead of
"bounds", the application crashes on this NSLog.
You're crashing because you are using the object placeholder "%@" to
print out the bounds. bounds (and frame) return an NSRect, which is not
a Cocoa object.
If you want to print an NSRect in your NSLog call, try this:
NSLog(@"content bounds = %@", NSStringFromRect([[inspectorDrawer
contentView] bounds]));
Don
_______________________________________________
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.