Re: Custom view - newbie stumped
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