two problems I've hit...
two problems I've hit...
- Subject: two problems I've hit...
- From: Jeff LaMarche <email@hidden>
- Date: Wed, 17 Oct 2001 09:23:29 -0700
Venturing away from the tutorials, I'm building my first more complex
application with more than one NIB and using a variety of different
control types just to get a better feel for the App Kit.
I've hit two snags:
1. I have an NSTableView in a window defined in a NIB. I have a subclass
of NSWindowController that controls it. I am using default behavior
except that I've provided an NSImageCell to one column in the
WindowDidLoad method so that it knows that the table data source will be
passing NSImages and not strings for that column. I have also increased
the row size in this method to 75.0. There seems to be a problem with
selecting the first visible row in the table. There are no overlapping
objects in the NIB and I'm not doing anything to manually intercept
mouse-down events or anything like that. It works perfectly as I expect
it to, except for this problem. Any thoughts on what might be causing
this?
2. This is more of a question than a snag, but I have a singleton window
in my main NIB and two windows each with its own NIB and controller.
They work correctly with the exception of the File menu option "Close"
does not enable when either window becomes key. Now, I know how I can
enable the menu item, but it seems that this behavior happens
automagically if you're using the Multi-Document architecture, so I
didn't want to go implement functionality that's provided for me. Is
there some way to have this happen, or do I need to manually enable and
disable the File--> Close menu item?
As always, thanks
Jeff