• 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
Programmatically loading an NSImage via other field
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Programmatically loading an NSImage via other field


  • Subject: Programmatically loading an NSImage via other field
  • From: email@hidden
  • Date: Wed, 03 Dec 2008 22:23:29 -0500

Namaste!

OK, I'm beat for the day...

I'm struggling with how to load an image into an NSImage via another field's value.

I have a field that contains a path & name of an image file. The user can type it in or select it via OpenFile sheet. This works just fine and I'm setting the underlying data object so the value persists.

Now, my question:  how do I get that value to propagate over to the image?

In Windows, I can monitor via the onChange event for the textbox. Piece of cake.

Here, though, I'm a bit perplexed.

I thought perhaps the textDidChange delegate method might do it (I put that in my File's Owner, and made the File's Owner a delegate of the NSTextField that contains the image name). However, it doesn't fire e'en though the text clearly changes (onscreen).

So, how do I accomplish this should-be-easy feat?

Thanks!

Peace, Love, and Light,

/s/ Jon C. Munson II

_______________________________________________

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: Programmatically loading an NSImage via other field
      • From: Ken Tozier <email@hidden>
    • Re: Programmatically loading an NSImage via other field
      • From: "Sean McBride" <email@hidden>
  • Prev by Date: Big picture relationships between NSConnection, NSInputStream, NSOutputStream etc
  • Next by Date: How to make a RunLoop patiently do nothing?
  • Previous by thread: Re: Big picture relationships between NSConnection, NSInputStream, NSOutputStream etc
  • Next by thread: Re: Programmatically loading an NSImage via other field
  • Index(es):
    • Date
    • Thread