• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: _arrangedObjects not allocated
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: _arrangedObjects not allocated
      • From: mmalcolm crawford <email@hidden>
References: 
 >_arrangedObjects not allocated (From: Chris Outwin <email@hidden>)

  • Prev by Date: NSPasteBoard setPropertyList:forType
  • Next by Date: Re: Updating System Menu bar
  • Previous by thread: Re: _arrangedObjects not allocated
  • Next by thread: Re: _arrangedObjects not allocated
  • Index(es):
    • Date
    • Thread