Re: setting corner view
Re: setting corner view
- Subject: Re: setting corner view
- From: Yann Bizeul <email@hidden>
- Date: Tue, 5 Jun 2007 08:04:32 +0200
@interface NetworkOutlineController : NSObject
{
IBOutlet id outlineView;
IBOutlet id cornerView;
Just a side note about that, you should specify the class of outlets
you are using to avoid confusion in some situation. If you set the
class, IB will refuse to connect to something that is not of the
right class or subclass. Just a good habit I think.
For your problem, you should check, running in debug mode and setting
a breakpoint, if both outlineView and cornerView contains valid
objects (print their description in the console). Well, if you
prefer, like many, you can also use NSLog to debug the content of
those variables :-)
Regards,
Yann Bizeul - yann at tynsoe.org
Cocoa Developer
Tynsoe Projects
BuddyPop - GeekTool - SSH Tunnel Manager - ...
http://projects.tynsoe.org/
Le 5 juin 07 à 07:37, William Zumwalt a écrit :
I am trying to set the corner view of my NSOutlineView with the
following awakeFromNib: method. I created a view in IB and dragged it
onto my *.nib, and made the connections but it is not appearing in my
header. The view contains a small button.
I read the "Parts of a Table" dev doc and followed it, or so I
thought, but don't know where I went wrong.
@interface NetworkOutlineController : NSObject
{
IBOutlet id outlineView;
IBOutlet id cornerView;
// ...
}
@implementation NetworkOutlineController
- (void) awakeFromNib
{
[outlineView setCornerView:cornerView];
return;
}
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden