Re: IB and foundation collections (was: IB problem)
Re: IB and foundation collections (was: IB problem)
- Subject: Re: IB and foundation collections (was: IB problem)
- From: Vince DeMarco <email@hidden>
- Date: Tue, 23 Sep 2003 10:40:28 -0700
On Sep 23, 2003, at 5:02 AM, Chris Purcell wrote:
Vince,
Does this fix also cure a problem I have discovered incorporating
NSDictionary/NSArray into new IB nibs? Namely: if two dictionaries
have identical contents (which, due to a peculiarity in how I have
implemented control-drag-inclusion, actually means any dictionary with
the same structure), the nib starts getting inconsistency errors, then
eventually dies...
No it doesn't, the problem is that the collection types are class
clusters and IB gets very confused when it writes out a NSDictionary
and gets back something else.
vince
( BTW, in case this helps test the exact problem and you have the
time, the palette I wrote is at
http://www.geocities.com/kritter_cocoadev )
Kritter out
Ah, that worked just fine. I have IB 2.3.2 v291. Is there a later
version that will be released or is it to be an Xcode thing?
Not at all related to XCode, its really a appkit bug that we worked
around in IB.
You will have to wait for the next version of IB to be released, and i
don't know when that is. This bug is fixed on the Panther version of
IB.
vince
thanks
On Monday, September 22, 2003, at 01:40 PM, Vince DeMarco wrote:
We fixed the problem in the newer build of the system. Remove the
autosave name on the table view.
vince
I am getting an error message each time that I open a particular
nib.
The message is "An inconsistency in the document was found and
repaired. Please save the document." When I examine the NIB the
"repair" always removes the same NSTableView column. It is always
the
last, right-most column, and is the column in which I place a
checkbox
with the following:
NSButtonCell *recCell = [NSButtonCell new];
[recCell setButtonType:NSSwitchButton];
[recCell setTitle:@""];
[recCell setImagePosition:NSImageOnly];
[[transTableView tableColumnWithIdentifier:@"11"]setDataCell:
recCell ];
I do update the table column with by updating the table source
array
(mutable) with the "- (void)tableView:(NSTableView *)tableView
setObjectValue:(id)object forTableColumn:(NSTableColumn
*)tableColumn
row:(int)row" method, etc.
This follows Chapter 18 in the Cocoa Programming book and seems to
work
quite well. In fact the code works quite nicely, except that it
seems
to be doing something to the NIB.
Any suggestions on why I am getting this IB message?
John
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.