• 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
What's the difference...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: localization Q
  • Next by Date: Re: [ANN] Big Nerd Ranch Europe
  • Previous by thread: Re: [ANN] Big Nerd Ranch Europe
  • Next by thread: Setting the source of an NSArrayController from more than one other controller
  • Index(es):
    • Date
    • Thread