• 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
to change background color of a cell in NSMatrix
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

to change background color of a cell in NSMatrix


  • Subject: to change background color of a cell in NSMatrix
  • From: "Navneet Kumar" <email@hidden>
  • Date: Sun, 6 Jan 2008 03:19:19 +0530

Hi,



I have a NSMatrix of NSTextField cells.



For changing the background color I'm doing this (doesn't work)



[matrixAscii selectCellAtRow:1, column:0];

[matrixAscii setBackgroundColor: [NSColor yellowColor]];



Have tried this also: (doesn't work)



[matrixAscii selectCellAtRow:1, column:0];

[matrixAscii setCellBackgroundColor: [NSColor yellowColor]];



Also NSCell doesn't seem to list any method to do this except highlighting
the cell.

How to do this?





Thanks in advance.



Wishes,

Navneet



_______________________________________________

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

  • Prev by Date: Re: thread protocol modifiers
  • Next by Date: RE: NSMatrix: does it have an delegate method...
  • Previous by thread: Re: NSMatrix: does it have an delegate method...
  • Next by thread: AppleScript enabling my application, is it easier in XCode 3.0 / Objective-C 2.0
  • Index(es):
    • Date
    • Thread