• 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
NSTableView and custom table headers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTableView and custom table headers


  • Subject: NSTableView and custom table headers
  • From: Jeremy Dronfield <email@hidden>
  • Date: Mon, 16 Feb 2004 12:02:04 +0000

Am I correct in thinking that a table view does not retain its table header view? The documentation says neither yea or nay on this point. My experiments suggest that -setTableHeaderView: does not work in the same way as -addSubview: and that the view is not retained. Therefore I cannot do:

[myTable setHeaderView:myCustomHeader];
[myCustomHeader release];

This is an irritant because I have several tables with custom headers (same background image, different text) and would prefer to recycle myCustomHeader during the setup routine rather than take the trouble to create and retain several instances.
-Jeremy

========================================
email@hidden

theLocustFarm.net:
- fractious fiction at http://freespace.virgin.net/jeremy.dronfield
========================================
_______________________________________________
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.

  • Prev by Date: Re: NSTableView/NSPopUpButtonCell Mysteries
  • Next by Date: Self contained MetaPackages
  • Previous by thread: Re: NSTableView/NSPopUpButtonCell Mysteries
  • Next by thread: Self contained MetaPackages
  • Index(es):
    • Date
    • Thread