Re: _arrangedObjects not allocated
Re: _arrangedObjects not allocated
- Subject: Re: _arrangedObjects not allocated
- From: Chris Outwin <email@hidden>
- Date: Tue, 13 Dec 2005 15:10:02 -0600
What I'm trying to do is to drop an image file on a NSImageView,
create my imaging class object, assign the view's image to my imaging
object and add my image object to a NSArrayControlller.
Is there a more appropriate method other than add? Thank you.
On Dec 13, 2005, at 1:26 PM, Chris Outwin wrote:
I am trying to understand why _arrangedObjects for a subclassed
NSArrayController has a value of 0x0 in the debugger after
addObject is called.
I have a NSImageView which sends add to the custom
NSArrayController when an image is dropped.
- (void)add:(id)sender {
BFOSImage* image = [[BFOSImage alloc] init];
if (image != nil) {
[image setInputNSImage:[sender image]];
[self addObject:image];
[image release];
- (void)awakeFromNib {
[self setObjectClass:[BFOSImage class]];
Why are _contentObjectArray and _arrangedObjects shown as not
being allocated in the debugger? Thank you.
_______________________________________________
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