Re: Programmatically loading an NSImage via other field

2008-12-04 Thread jmunson
Namaste! Back so soon... :) OK, I took a look a what you have and have some questions. And, well, h... I'M A DOPE!! :D No questions! The reason for that is I was under the extremely mistaken impression that I couldn't load the ImageView from a simple path via a binding. I took a lo

Re: Programmatically loading an NSImage via other field

2008-12-04 Thread jmunson
Great! Thanks! I'll take a look at at it. I'm still a Windows guy. Actually, I'm becoming dual-platform. Now that's a scary thought (but quite marketable if need be). But you are probably not in the Maryland area, are ya? Appreciate the help, I'll grab that zip now. Peace, Love, and L

Re: Programmatically loading an NSImage via other field

2008-12-04 Thread Matt Long
Jon, I'm not sure I understand the whole problem here, but from your initial message I put together a simple demo project that will take the input value from a text field and use that as the path for an NSImageView. It does it on the fly (e.g. as you type). Here is the demo project: htt

Re: Programmatically loading an NSImage via other field

2008-12-04 Thread jmunson
Namaste! OK, I've been playing around with this for too long now... NOTHING gets called when text in a control is set via code or a mechanism other than strict keyboard/mouse entry by the user from what I can determine. This, in a word, is not good. I've set up an observer, delegates, and

Re: Programmatically loading an NSImage via other field

2008-12-04 Thread Ken Tozier
My example wasn't, strictly speaking, KVO. To set up an observer you would need to do something like the following @interface MYController : NSObject { IBOutlet NSTextField *imagePath; } @end @implementation - (id) init { self = [super init]; if (self) {

Re: Programmatically loading an NSImage via other field

2008-12-04 Thread jmunson
In continuance... Alright, so it isn't strictly KVO...:) But it looks like it...:) Anyway, is there a way to know when the "stuff" in the cell changes? Most everything I can find is relative to when the user interacts with the control. But I can't find anything, as yet, for when the user

Re: Programmatically loading an NSImage via other field

2008-12-04 Thread jmunson
In response to all the responses... This "monitoring" needs to happen whether the user types in a field, or, there is a choice made via NSOpenPanel, or the record is scrolled (meaning moved next, moved previous). So, using the beginning of the KVO below (which is the route I suspected I'd

Re: Programmatically loading an NSImage via other field

2008-12-03 Thread Ken Tozier
Something like this should get you in the ballpark MyController : NSObject { IBOutlet NSTextField*imagePathField; IBOutlet NSImageView*imageView; } // register controller to receive messages from the text field - (void) awakeFromNib { [imagePathField setDe

Re: Programmatically loading an NSImage via other field

2008-12-03 Thread Sean McBride
[EMAIL PROTECTED] ([EMAIL PROTECTED]) on 2008-12-03 10:23 PM said: >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

Programmatically loading an NSImage via other field

2008-12-03 Thread jmunson
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 underl