• 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 contentView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >NSDrawer contentView (From: Daniel Todd Currie <email@hidden>)

  • Prev by Date: printing the standard output in a NSTextview
  • Next by Date: Re: Declarations in middle of C code?!
  • Previous by thread: NSDrawer contentView
  • Next by thread: Re: NSDrawer contentView
  • Index(es):
    • Date
    • Thread