Binding: NSArrayController is loaded but doesn't display data in table
Binding: NSArrayController is loaded but doesn't display data in table
- Subject: Binding: NSArrayController is loaded but doesn't display data in table
- From: "Frederick C. Lee" <email@hidden>
- Date: Fri, 2 Dec 2005 12:13:34 -0800
Greetings:
My NSArrayController object (thumArrayController) is loaded. It
contains two keys: 'name' (NSString) and 'map' (NSImage).
The content is a NSArray of NSMutableDictionary objects.
But I can't bind the NSTableColumns to its attribute keys:
----------------------------------
--- The NSArrayController --- via IB:
NSAarrayController's attributes:
1) Content (Object Class Name) is NSMutableDictionary. <--
mode is 'class'.
2) Keys: map, name
Here's a partial list via debugger:
(gdb) po [thumbArrayController content]
<NSCFArray 0x31d3b0>(
<NSCFDictionary 0x39e340>{
name = Czech;
map = NSImage 0x39e670 Size={100, 62} Reps=(
NSBitmapImageRep 0x39e950 Size={100, 62}
ColorSpace=NSCalibratedRGBColorSpace BPS=8 BPP=24 Pixels=100x62
Alpha=NO Planar=NO Format=0
);
}
,
<NSCFDictionary 0x39e800>{
name = Germany;
map = NSImage 0x39ec70 Size={100, 62} Reps=(
NSBitmapImageRep 0x39ece0 Size={100, 62}
ColorSpace=NSCalibratedRGBColorSpace BPS=8 BPP=24 Pixels=100x62
Alpha=NO Planar=NO Format=0
);
}
...
...
-------------------------------------
--- The table's column --- via IB:
Table Column #1:
Attribute: 'map' - identifier
Binding:
value =arrangedObjects.map [thumbNailArrayController
(NSArrayController)]
Table Column #2:
Attribute: 'name' - identifier
Binding:
value =arrangedObjects.name [thumbNailArrayController
(NSArrayController)]
======================================
But I don't see any objects in the NSTableView.
What am I missing?
Regards,
Ric.
_______________________________________________
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