Re: learning the NSView structure of an app?
Re: learning the NSView structure of an app?
- Subject: Re: learning the NSView structure of an app?
- From: Rob Keniger <email@hidden>
- Date: Sun, 30 Aug 2009 11:17:00 +1000
On 29/08/2009, at 2:08 AM, sag lists wrote:
As a relatively new cocoa developer, one thing I struggle with is
determining on visual inspection how an app is constructed in terms
cocoa views. Some things are obvious like splitter views, the
toolbar, etc. But some are not. Does anyone know if there is a way
to examine the view hierarchy of an app? Or alternatively, a good
way to learn many of the common app layout patterns?
If you launch your app executable with the argument -NSShowAllViews
YES, then you will be able to see all the views and their hierarchy
using color-coded border highlights.
You can either add the argument to your executable in Xcode or run
your app from the command line:
./YourApp.app/Contents/MacOS/YourApp -NSShowAllViews YES
--
Rob Keniger
_______________________________________________
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