• 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: Custom view - newbie stumped
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom view - newbie stumped


  • Subject: Re: Custom view - newbie stumped
  • From: Ondra Cada <email@hidden>
  • Date: Tue, 25 Apr 2006 14:51:57 +0200

Kenny,

On Apr 25, 2006, at 10:11 AM, Kenny Millar wrote:

You are dead right. I did instantiate TLView - which I now know I should not
have done. Now I know!

It may be just a coincidence, but it seems to me IB gradually makes instantiation somewhat obsolete: whilst you of course do instantiate your own NSObject-based controllers (and very rarely other objects), newer controllers based on NS*Controller have to be dragged from the palette and their class changed in the Custom Class inspector. It may or may not be the generic course for future, dunno.


BTW, very often it is worth to log self in debug prints, like this:

NSLog(@"Something just happened in %@:%x", [self class],self);

It helps exactly in cases some events get processed by a different object you wanted to (or some notifications get observed by it, etc. -- happened to me just today with a window resize notification :))
---
Ondra Čada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc



_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >RE: Custom view - newbie stumped (From: "Kenny Millar" <email@hidden>)

  • Prev by Date: completion weirdness
  • Next by Date: Re: Temporary object created at runtime with Core Data
  • Previous by thread: RE: Custom view - newbie stumped
  • Next by thread: Re: Custom view - newbie stumped
  • Index(es):
    • Date
    • Thread