Re: title bars messed up when scrolling in NSTableView
Re: title bars messed up when scrolling in NSTableView
- Subject: Re: title bars messed up when scrolling in NSTableView
- From: Corbin Dunn <email@hidden>
- Date: Mon, 30 Jan 2006 12:20:53 -0800
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