• 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: NSImageView's images are invisible until clicked
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImageView's images are invisible until clicked


  • Subject: Re: NSImageView's images are invisible until clicked
  • From: John Pannell <email@hidden>
  • Date: Fri, 4 Jun 2004 14:45:45 -0600

Hi Ben-

You may need to tell the matrix that it has been updated... something
like this:

[squares setNeedsDisplay:YES];

As I understand it, this flags the matrix for redrawing the next time
the window server draws. Could be the issue...

Hope this helps!

John

On Jun 4, 2004, at 2:05 PM, Ben Kazez wrote:

> I've got an NSMatrix of NSImageViews that don't hold any images until
> they are told to do so programmatically:
>
> =======================================================
> [[squares cellAtRow:row column:col] setImage:(p == PLAYER_BLACK ?
> image_BLACK : image_RED)];
> =======================================================
>
> However, when this code runs, I can't see the image until I click on
> that spot in the NSMatrix. Any ideas?
>
> Ben
> --
> Ben Kazez
> http://ben.kazez.com/
> _______________________________________________
> 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.
_______________________________________________
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.


References: 
 >NSImageView's images are invisible until clicked (From: Ben Kazez <email@hidden>)

  • Prev by Date: NSTableView blanks out on double-click
  • Next by Date: Re: NSImageView's images are invisible until clicked
  • Previous by thread: NSImageView's images are invisible until clicked
  • Next by thread: Re: NSImageView's images are invisible until clicked
  • Index(es):
    • Date
    • Thread