Re: NSDrawer returning large NSSize values
Re: NSDrawer returning large NSSize values
- Subject: Re: NSDrawer returning large NSSize values
- From: "Clark S. Cox III" <email@hidden>
- Date: Sun, 27 Jun 2004 12:50:07 -0400
On Sunday, June 27, 2004, at 10:07AM, Michael Hanna <email@hidden> wrote:
>
This code:
>
>
>
-(void)awakeFromNib
>
{
>
NSUserDefaults *defaults;
>
NSNumber *value;
>
//NSRect drawerRect;
>
NSSize aSize;
>
NSView *drawerView = [bottDrawer contentView];
>
aSize = [drawerView frame].size;
>
//aSize = drawerRect.size;
>
NSLog(@"drawerview size awake: %d, %d", aSize.height, aSize.width);
Your problem is that the fields of NSSize are floats, not ints. To print them, use the "%f" conversion specifier, not "%d".
_______________________________________________
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.