• 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
How get:int:col:OfCell works?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: How get:int:col:OfCell works?
      • From: David Remahl <email@hidden>
  • Prev by Date: Re: Why can't I introduce new variables after init stage?
  • Next by Date: Re: How get:int:col:OfCell works?
  • Previous by thread: Re: Syntax question
  • Next by thread: Re: How get:int:col:OfCell works?
  • Index(es):
    • Date
    • Thread