• 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
Problem in Mouse over
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problem in Mouse over


  • Subject: Problem in Mouse over
  • From: ADIL SALEEM <email@hidden>
  • Date: Mon, 10 Mar 2008 04:47:04 -0700 (PDT)

Hi,

What i am trying to do is that if mouse pointer is
placed over a certain button in the GUI, then the text
in a text field should be changed. I have subclassed
NSButton and assigned this custom class to my button.
>From this class i have been able to receive mouse
events and it works fine. But the problem is that once
it is detected that the mouse is over the button, the
text in the text field does not change. I have made an
outlet from button's custom class to that text field.
But the text in the text field does not change.

What i am doing is something like this...

- (void)mouseEntered:(NSEvent *)theEvent
{
  [textField setStringValue:@"New Value"];
}

- (void)mouseExited:(NSEvent *)theEvent
{
  [textField setStringValue:@"Old Value"];
}



Thanx


      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page.
http://www.yahoo.com/r/hs
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Problem in Mouse over
      • From: Stephane Sudre <email@hidden>
  • Prev by Date: Using Core Data with OCUnit
  • Next by Date: [newbie] NSTableView - First NSColumn should not be affected by horizontal scrollbar
  • Previous by thread: Re: Using Core Data with OCUnit
  • Next by thread: Re: Problem in Mouse over
  • Index(es):
    • Date
    • Thread