• 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: Newbie NSTableView How to get Multicolor Table Cells an Image s
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie NSTableView How to get Multicolor Table Cells an Image s


  • Subject: Re: Newbie NSTableView How to get Multicolor Table Cells an Image s
  • From: email@hidden
  • Date: Wed, 16 Apr 2003 20:18:49 -0700

Sure, try my sample code that accompanied my 3-part MacTech article.

<http://www.gigliwood.com/tabletester/>

Regards,
Dan Wood

On Friday, April 11, 2003, at 02:03 PM, ROSE,ROBERT W (HP-Corvallis,ex1) wrote:

Is there any sample code floating around out there that demonstrates all of
the different types of things that you can embed in an NSTableView?
Specifically, I'm looking for good examples of checkboxes, radio buttons,
and progress indicators, AND how to dynamically add and remove these types
at run-time.

?
-robert

-----Original Message-----
From: Esteban Uribe [mailto:email@hidden]
Sent: Thursday, April 10, 2003 9:51 PM
To: Chad Eckles
Cc: Cocoa
Subject: Re: Newbie NSTableView How to get Multicolor Table Cells an
Images

Hi,

On Thursday, April 10, 2003, at 05:46 PM, Chad Eckles wrote:

Can anyone send me an example on how to make the Table Cells in a
NSTableView multicolored ?

I don't have one right here handy but basically make your controller a
delegate
of NSTableView and implement the delegate method
- (void)tableView:(NSTableView *)aTableView willDisplayCell:(id)aCell
forTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex

Also I have my Table which Is fill with data from an array how can I
add
images so they show next to the Table Cell next to the Text ?

The easiest way would be to add a column for the image, and make the
datasource method
- (id)tableView:(NSTableView *)aTableView
objectValueForTableColumn:(NSTableColumn *)aTableColumn
row:(int)rowIndex

just return an NSImage for that cell :)

The other way is to embed an NSTextAttachment in an attributed string...
Check out this message for info on that.
<http://cocoa.mamasam.com/COCOADEV/2003/04/1/60696.php>

Also http://cocoa.mamasam.com is a good place to search all the
previous postings to the list :-)
You can find some great answers to frequently asked questions there too
:-)

Hope this helped
-Esteban Uribe
_______________________________________________
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.
_______________________________________________
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.



--
Dan Wood
Karelia Software, LLC
email@hidden
http://www.karelia.com/
Watson for Mac OS X: http://www.karelia.com/watson/

The Arrogance of Power: <http://www.fatdawg.com/senbyrd.html>

To announce that there must be no criticism of the president, or that we are to stand by the president, right or wrong,is not only unpatriotic and servile, but is morally treasonable to the American public.
-- Theodore Roosevelt _______________________________________________
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.
References: 
 >RE: Newbie NSTableView How to get Multicolor Table Cells an Image s (From: "ROSE,ROBERT W (HP-Corvallis,ex1)" <email@hidden>)

  • Prev by Date: Re: Newbie: NSString and debugging question
  • Next by Date: Re: Newbie: NSString and debugging question
  • Previous by thread: RE: Newbie NSTableView How to get Multicolor Table Cells an Image s
  • Next by thread: RE: Newbie NSTableView How to get Multicolor Table Cells an Image s
  • Index(es):
    • Date
    • Thread