On Sun, Jun 28, 2009 at 12:59 PM, Phil Hystad<phys...@mac.com> wrote: > (1) The default Cocoa Application created by Xcode creates a simple > application with a single window and a default menu (among other things I > presume). This window has a content view which I am assuming is an instance > of NSView but I actually can't find out if that is true. Therefore, are > there any inspectors that tell me the actual class used for a particular > view. The class identity part of the Inspector for the content view > suggests has a drop down that allows me to choose various classes but there > must be a specific class that is used already. How do I find this?
Don't worry about it. You shouldn't muck with the content view of a window; the window treats it specially. It's only exposed as an NSView, regardless of what subclass it is actually an instance of. Just add your views as children of it. > (2) I am trying to understand how the window sizing features of the view > inspector relate to the window itself. As best as I can tell, none of the > actual window sizing features for the content view are usable as they do not > really seem to do anything. Is this true? Is it possibly the case that the > content view, being bound to the window frame, is sized automatically based > on the window size? See above. If you want to make a full-window view, for example, you just add it as a child of the content view, size it to the full size of the window (technically the full size of the content view's bounds) and set the autoresize mask appropriately. > (3) Again, on the window sizing inspector, if I resize the window using the > resize thingy in the lower right hand corner, I can see the updated pixel > size in the inspector, but only after I stop resizing. If I want to resize > to a particular dimension, say 300 x 225 (or, whatever), it is a try this, > check, try that check, and so on. Is there a way to enable the size values > of height and width to resize dynamically as I change the window size? I > have looked all over the documentation and tried a lot of things but nothing > seems to make the behavior different. Don't think so. File a radar: http://bugreport.apple.com You can also enter the values directly in the text fields. > (4) And, finally, on the window sizing inspector, in the part called > "autosizing" when I click on the content view (remember, it is empty, just > as created by Xcode), there is an animated image that expands and contracts > in size and I have absolutely no idea why it is animated or what it means. > Any help? It's showing you how that view will behave when the window is resized. As I said, don't play around with the content view, but add another view and play around with it. You can hit Cmd-R to run the simulator and see how the autoresize mask behaves. --Kyle Sluder _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com