Re: Collection of Cocoa & objc questions from a "newbie"
Re: Collection of Cocoa & objc questions from a "newbie"
- Subject: Re: Collection of Cocoa & objc questions from a "newbie"
- From: Art Isbell <email@hidden>
- Date: Tue, 17 Jul 2001 23:43:47 -1000
On Tuesday, July 17, 2001, at 11:31 PM, John C. Randolph wrote:
On Wednesday, July 18, 2001, at 02:12 AM, Art Isbell wrote:
An example of one of these template classes is NSWindowTemplate.
Are you sure about this? I thought that NSWindowTemplate was
only used within IB, and that it actually instantiated an
NSWindow and wrote *that* into the .nib. IIRC,
NSWindowTemplate provides the IB-specific window behavior like
accepting dragged objects from the palettes and drawing the
blue, dashed layout lines.
It's easy to check for yourself. Just load a Cocoa app into
gdb, set breakpoints at NSWindowTemplate's initWithCoder: and
NSWindow's initWithCoder: and
initWithContentRect:styleMask:backing:defer:, and run it. When
the main window is loaded, execution should break first at
NSWindowTemplate's initWithCoder:, then at NSWindow's
initWithContentRect:styleMask:backing:defer:, but never at
NSWindow's initWithCoder:.
Art Isbell
Apple iServices Technical Support
http://www.apple.com/iservices/webobjectssupport/
+1-808-591-0836