Re: Accessing Cocoa UI Componets
Re: Accessing Cocoa UI Componets
- Subject: Re: Accessing Cocoa UI Componets
- From: Jerrod Fowkes <email@hidden>
- Date: Tue, 25 Apr 2006 09:13:50 -0700 (PDT)
Hello, I appreciate your mail. I think I may hafta switch mine to Gmail because I honestly haven't gotten a grasp on how to keep track of each individual mail that I get on a topic. I haven't really done mailing lists before, I have pretty much used forums. So I am sorry for my untidyness. I have a gmail account and seriously considering using that. Anyways, I am sorry I used the term "form". That is a C# .NET term that I shouldn't be using here. I think "window" is better.
Someone has already lended me a hand on figuring out what I needed and I was able to do it. It basically came down to something really fundamental and it was a matter of just using my controller to use the button as an outlet so that I could get a handle to it. After that it was smooth sailing. Again I apologize for the terminology and the whole mail tidy thing. -Jerrod Fowkes
"M. Uli Kusterer" <email@hidden> wrote: On 25/04/06, Jerrod Fowkes <email@hidden> wrote: I can't, I need the instance of the button on my form. Since it's not an outlet, I don't have an actual object of it. except when I click on it (sender), however I dont' think I can modify that.
Hsu < email@hidden> wrote: Why not just use -[NSButton setAlternateImage:] ?
Hi,
I'd love to help, but I have no clue what you're trying to achieve (that you're quoting other messages in the wrong order isn't helping either). Give us more (and better) info. What "form"? If it's not an outlet, why not make it one? And you *do* have an actual object, you might just not have access to a pointer right now. Outlets are one way to do that. Another is to keep around the pointer after creating it if you're doing an alloc/initWithRect:.
I think what you really want to do is put those elements into a NIB file of their own and then use NSNibLoading to instantiate several copies of them or so, and have a controller object for each NIB instance that "owns" the objects "in it". That controller would then have the needed outlets.
But I'm wildly guessing here. Give us more high-level info on what you're trying to achieve, and please try to keep an eye on the readability of your e-mails and quote relevant portions and keep stuff in an order that we can actually make out what refers to what. Thanks.
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
---------------------------------
Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2ยข/min or less.
_______________________________________________
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