• 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: Collection of Cocoa & objc questions from a "newbie"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Collection of Cocoa & objc questions from a "newbie"
      • From: "John C. Randolph" <email@hidden>
References: 
 >Re: Collection of Cocoa & objc questions from a "newbie" (From: "John C. Randolph" <email@hidden>)

  • Prev by Date: Oops, I stand corrected. (was: Collection of Cocoa & objc questions from a "newbie")
  • Next by Date: Re: Collection of Cocoa & objc questions from a "newbie"
  • Previous by thread: Re: Collection of Cocoa & objc questions from a "newbie"
  • Next by thread: Re: Collection of Cocoa & objc questions from a "newbie"
  • Index(es):
    • Date
    • Thread