• 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: devil of a time with an NSImageView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: devil of a time with an NSImageView


  • Subject: Re: devil of a time with an NSImageView
  • From: Jack Carbaugh <email@hidden>
  • Date: Wed, 19 Aug 2009 18:39:44 -0400

You are correct. Logging of boxPic is indeed null.

How do i proceed then?

here is a snippet of the code ...

aWindowController *theWindowController = [[aWindowController alloc] initWithMyName:[who name]];

// snip several assignments to theWindowController

if ( [[who serverItems] objectForKey:@"image"] )
{
[theWindowController setImages:[[who serverItems] objectForKey:@"image"]];
}


// method
-(void)setImages:(NSImage *)newImage;
{
   [newImage retain];
   NSLog(@"Incoming image: %@", newImage);
   [boxPic setImage:newImage];
   NSLog(@"box:%@", boxPic);

   [newImage release];
}


On Aug 19, 2009, at 6:11 PM, Quincey Morris wrote:

On Aug 19, 2009, at 14:31, Jack Carbaugh wrote:

100% certain it is connected in the xib.

That's not proof it's connected (yet) at the time 'setImage:' is invoked. Log the value of 'boxPic' too, and I bet it will be nil.



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: devil of a time with an NSImageView
      • From: Jean-Daniel Dupas <email@hidden>
References: 
 >Statements in Replaced Method execute out of sequence - How? (From: Jerry Krinock <email@hidden>)
 >devil of a time with an NSImageView (From: Jack Carbaugh <email@hidden>)
 >Re: devil of a time with an NSImageView (From: Dave DeLong <email@hidden>)
 >Re: devil of a time with an NSImageView (From: Jack Carbaugh <email@hidden>)
 >Re: devil of a time with an NSImageView (From: Quincey Morris <email@hidden>)

  • Prev by Date: Re: devil of a time with an NSImageView
  • Next by Date: Re: devil of a time with an NSImageView
  • Previous by thread: Re: devil of a time with an NSImageView
  • Next by thread: Re: devil of a time with an NSImageView
  • Index(es):
    • Date
    • Thread