Re: Function calls
Re: Function calls
- Subject: Re: Function calls
- From: Paul Sargent <email@hidden>
- Date: Mon, 24 Jan 2005 17:25:23 +0000
I think what the original poster is asking (I'm assuming that english
isn't his first language) is...
In functions which are not actions, and therefore do not have a sender
argument which points back to the UI object, how do you access the UI
objects?
You need to add outlets to your controller class and attach them in
InterfaceBuilder to the objects you wish to access. Try working through
one of the tutorials on www.apple.com. They cover this type of basic stuff.
http://developer.apple.com/documentation/Cocoa/Conceptual/ObjCTutorial/index.html
daniel wrote:
It's not clear from the second part of your question when the
functionName" function gets called, but to answer your first question:
You cannot access the nib elements until they've been unarchived.
They are not unarchived when the nib owner's "init" method is called.
You need to wait until the "awakeFromNib" method is called.
Daniel
On Jan 21, 2005, at 8:18 PM, Sharayu Puranik wrote:
Hi
I have one NSTableView and one List control on nib file.....
If I try to put values in these controls (either supply data source
for table or put
value in List control) in
'- (id)init' function, I m not able to access these controls, means
they do not
respond to code I write to insert values to them
I write some function which is not called by clicking of any button
or any control
Fiunction is not of type
'- (IBAction)functionName:(id)sender;'
but is '-(void)functionName'
Again if I try to access any control from '-(void)functionName' , I
can not access
any control from this function means the controls do not respond,
and I do not
get any warning or error
Why is it so? If I want to call function depending on some
condition can't I
access List, Table, Textbox or Popup controls from such functions???
Thanx
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden