Re: [SOLVED] title bars messed up when scrolling in NSTableView
Re: [SOLVED] title bars messed up when scrolling in NSTableView
- Subject: Re: [SOLVED] title bars messed up when scrolling in NSTableView
- From: "Paul L. Gribble" <email@hidden>
- Date: Mon, 30 Jan 2006 20:49:50 -0500
- Thread-topic: [SOLVED] title bars messed up when scrolling in NSTableView
Excellent!
That works. Thanks very much for this.
I had missed the realization that I needed to first subclass my generic
controller and then instantiate it, in order to create and wire up the
outlet, and to insert the custom awakeFromNib code.
Also in this case I call [super awakeFromNib]; before calling [tableView
setFrameOrigin:NSZeroPoint];
So was I supposed to be able to find this solution somewhere in Apple¹s
documentation or release notes?
On 1/30/06 3:20 PM, "Corbin Dunn" <email@hidden> wrote:
>
> On Jan 30, 2006, at 11:51 AM, Paul L. Gribble wrote:
>
>> - (void)awakeFromNib {
>> [tableView setFrameOrigin:NSZeroPoint];
>> }
>> ³
>>
>> So my controller¹s awakeFromNib method should make the extra call to
>> [tableView setFrameOrigin:NSZeroPoint];? Is that right? My controller
>> presently is basically empty ... so how does it ³know² about the tableView
>> object?
>
> Paul -- you need to add an outlet in your controller that you hook up in IB.
> In your header, add:
>
> IBOutlet NSTableView *tableView.
>
> Drag and drop the header to your nib that is open in IB.
> This will reload the header for your controller.
> Ctrl-click on your controller object and drag it to the tableview.
> Let it go, and hook up the outlet to your new tableView instance variable.
>
> There are more detailed (graphic steps) on how to do this in the apple
> documentation, and/or any good cocoa book (I started with Hillegass 'cocoa
> programming for mac os x').
>
> -corbin
>
_______________________________________________
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