How get:int:col:OfCell works?
How get:int:col:OfCell works?
- Subject: How get:int:col:OfCell works?
- From: praveena tandon <email@hidden>
- Date: Sat, 25 May 2002 02:49:19 -0700 (PDT)
Hi all,
I have created a NSMatrix for group of Buttons and
i wanted to find the row and col of the button on
click of a button .The code for which is as follows
but i am getting "EXC_BAD_ACCESS" while debugging.
- (IBAction)change:(id)sender
>
{
>
int row,col;
>
NSImage *XImage,*OImage;
>
NSButtonCell *buttonCell;
>
XImage = [NSImage imageNamed:@"x.tiff"];
>
[XImage setSize:NSMakeSize(65,90)];
>
>
OImage = [NSImage imageNamed:@"o.tiff"];
>
[OImage setSize:NSMakeSize(65,90)];
>
>
buttonCell = [sender selectedCell];
>
checkCell=[View getRow:(int *)row column:(int
>
*)col ofCell:(NSCell *)buttonCell];
>
[selectedCell setImage:XImage];
>
[selectedCell setEnabled:NO];
>
........
>
.........
>
}
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.