• 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
Initializing an NSView derivative's variables...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Initializing an NSView derivative's variables...


  • Subject: Initializing an NSView derivative's variables...
  • From: Jiva DeVoe <email@hidden>
  • Date: Sat, 17 Aug 2002 23:16:59 -0700

So I have a custom view that I have attached to a custom view object in IB.
When the window is shown, my "initWithFrame" method will get called, right?
But what I really want to do is something like "initWithObjectForView" and
init the view with the object I want it to draw. This paradigm seems to be
something I whack my head into over and over, and it doesn't seem to fit
with the Cocoa framework. What am I missing? What is the design pattern
behind a custom view and initializing the object the view needs to show?

How do others accomplish this same kind of thing? Do they write a
"setObject" method to set the object for the view? And if so, when do they
call it?
_______________________________________________
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.

  • Prev by Date: Re: NSTextViews with images
  • Next by Date: Jaguar : NSNetServices
  • Previous by thread: Re: NEWBIE: double backslash in NSStrings
  • Next by thread: Jaguar : NSNetServices
  • Index(es):
    • Date
    • Thread