• 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: title bars messed up when scrolling in NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: [SOLVED] title bars messed up when scrolling in NSTableView
      • From: "Paul L. Gribble" <email@hidden>
References: 
 >Re: title bars messed up when scrolling in NSTableView (From: "Paul L. Gribble" <email@hidden>)

  • Prev by Date: Re: Fake NSMenu-like view
  • Next by Date: Re: Running COCOA application during startup
  • Previous by thread: Re: title bars messed up when scrolling in NSTableView
  • Next by thread: Re: [SOLVED] title bars messed up when scrolling in NSTableView
  • Index(es):
    • Date
    • Thread