Re: [Newbie] Multiple NSTableViews
Re: [Newbie] Multiple NSTableViews
- Subject: Re: [Newbie] Multiple NSTableViews
- From: J Tichenor <email@hidden>
- Date: Sun, 26 Sep 2004 16:59:04 +0100
Quick followup on a problem I had where one NSTableView was working
fine but another wasn't. Nothing to do with methods and implementation,
but good old fashioned xcode/IB syncing.
After many hours of searching, I realized that the ivar name of my
NSTableView in the controller was one letter different from it's
setting in IB. This wouldn't usually be possible, but for whatever
reason, when I added the NSTableView IBOutlets for the two tables in
the controller in XCode, IB wouldn't parse them into the Outlets in the
table's Attributes. No idea why. Ended up entering them by hand in IB
to match, but of course I missed a letter -- typo bites me after hours
of staring at controller code. As mmalc has said before:
"The general point here is one that applies to all Cocoa development,
but is more important with the advent of bindings. Traditionally
developers are used to dealing with code. If something goes wrong
with the application, the first instinct is to look through your
source files to try to determine the cause. With Cocoa, however, an
increasing proportion of the functionality of an application is
determined by non-code files. If inspection of code fails to yield a
solution to a problem, you should get into the habit of looking at
other auxiliary files, primarily nibs."
Thanks for taking the time with this. It's hard sometimes, when you are
still learning, to know exactly where your mistake is -- whether it's
in implementation or in a simple/stupid syntax error.
j
_______________________________________________
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