• 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: Windows, NSTableView and newie question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Windows, NSTableView and newie question


  • Subject: Re: Windows, NSTableView and newie question
  • From: Brian Webster <email@hidden>
  • Date: Tue, 22 Jan 2002 12:51:07 -0600

On Tuesday, January 22, 2002, at 12:44 PM, email@hidden wrote:

Thanks, it works!!!. I have 1 more question. For doing this I must subclass for example my NSWindow and put the awakefromnib. I tried to subclass the NSTableView, as a tableview and nsscrollview (IB says its a NSScrollView). WHen i do that my application exist with errors :

One thing to learn about Cocoa is that it is not necessary to subclass window and view objects the vast majority of the time. The typical way of doing things is to create your own controller class and put an instance in your nib file. You can then control the behavior of your view objects through target/action and delegates. So you should ask yourself if you really _need_ to subclass NSWindow or NSTableView before doing so. There are some things that require a subclass, but the most comomn things don't need it.

That having been said, I'm not sure why you're getting the errors you're getting, but try not subclassing the view objects and then work from there.

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster


References: 
 >Re: Windows, NSTableView and newie question (From: email@hidden)

  • Prev by Date: Re: Windows, NSTableView and newie question
  • Next by Date: Re: Initializing an Array
  • Previous by thread: Re: Windows, NSTableView and newie question
  • Next by thread: Re: Windows, NSTableView and newie question
  • Index(es):
    • Date
    • Thread