What's the difference...
What's the difference...
- Subject: What's the difference...
- From: "John Cebasek" <email@hidden>
- Date: Mon, 26 Sep 2005 16:39:49 -0400
Hi List:
I've got a tabbed dialog that has edit fields on each tab; the tabbed pane in the nib file has 'tabless' turned on. On the dialog, in each tab, there are buttons "Use 1", "Use 2", which flip which tab is displayed - by a call to selectTabViewItemAtIndex.
If I click the buttons, the UI is in the correct state. The proper edit field has a focus ring around it and the cursor flashes.
The code is:
[tabPane selectTabViewItemAtIndex:PAGE_1];
[window makeFirstResponder: editField1];
[editField1 performClick:self];
[editField1 selectText:self];
[editField1 setNeedsDisplay];
[window update];
However, when I start up, I have to set the state of the UI back to the way the user left it, I do this by making a calling the performClick: method on the button that the user clicks.
When I do this, the edit fields are not set to the proper state. That is there's no focus ring around the default edit field nor is the cursor blinking.
What's the difference? Why the difference?
Any pointers would be appreciated.
Thanks
John
_______________________________________________
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