• 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: NSDrawer returning large NSSize values
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Prev by Date: Re: NSDrawer returning large NSSize values
  • Next by Date: Re: displaying a sheet with new document
  • Previous by thread: Re: NSDrawer returning large NSSize values
  • Next by thread: NSTimer issue, NSCalendarDate issue
  • Index(es):
    • Date
    • Thread