• 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
Re: NSButtonCell Ignores Button Type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSButtonCell Ignores Button Type


  • Subject: Re: NSButtonCell Ignores Button Type
  • From: Seth Willits <email@hidden>
  • Date: Tue, 29 Mar 2005 11:44:03 -0800

I have a bunch of NSButtonCells in an NSMatrix and no matter what I do, the cells toggle their states when clicked on, despite their button types being set to NSMomentaryPushInButton. I have looked at this for an hour and tried a million things, but I can't figure out why this is happening. I can setup a small test matrix and they work just fine, but mine refuses to.

Another problem I'm having is figuring out which button is actually clicked. Not selected (since there is no selection when in NSHighlightModeMatrix), but actually clicked. I thought something like


- (void)mouseUp:(NSEvent *)event
{
	BOOL cellWasHit;
	NSPoint point;

	point = [self convertPoint:[event locationInWindow] fromView:nil];
	cellWasHit = [self getRow:&lastRow column:&lastColumn forPoint:point];
	if (!cellWasHit) {
		lastRow = lastColumn = -1;
	}

	[super mouseUp:event];
}


... would work, but mouseUp is never called.


These are my only two problems with NSMatrix. I'd really appreciate anyone who can help me.



Seth Willits
------------------------------------------------------------------------ ---
President and Head Developer of Freak Software - http://www.freaksw.com
REALbasic Guru at ResExcellence - http://www.resexcellence.com/realbasic


"What difference is there between us, save a restless dream that follows my
soul but fears to come near you?"
-- Kahlil Gibran
------------------------------------------------------------------------ ---


_______________________________________________
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


  • Follow-Ups:
    • Re: NSButtonCell Ignores Button Type
      • From: Ricky Sharp <email@hidden>
References: 
 >NSButtonCell Ignores Button Type (From: Seth Willits <email@hidden>)
 >Re: NSButtonCell Ignores Button Type (From: Stephane Sudre <email@hidden>)
 >Re: NSButtonCell Ignores Button Type (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: how to make an object with a single unique instance like NSNull?
  • Next by Date: Re: how to make an object with a single unique instance like NSNull?
  • Previous by thread: Re: NSButtonCell Ignores Button Type
  • Next by thread: Re: NSButtonCell Ignores Button Type
  • Index(es):
    • Date
    • Thread