• 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: how would you allow editing of a combo box's values?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how would you allow editing of a combo box's values?


  • Subject: Re: how would you allow editing of a combo box's values?
  • From: Ondra Cada <email@hidden>
  • Date: Fri, 5 Jul 2002 02:45:37 +0200

On Friday, July 5, 2002, at 02:02 , Cryx wrote:

Yup, why not? Just take care to implement cell's API properly.

Ok, thanks! Can the custom cell's drawWithFrame:inView: more or less call [myTableView displayRect:cellFrame]?

Nope. It should call (more or less) [myTableView drawRect:rr], where rr is computed from the frame (generally changing the myTableView's frame appropriately too).

Sorry, I don't remember the details, and I am even not quite sure of the issues with locking focus -- I've done this only once, and quite long ago (actually, before Apple even bought the thing). Nevertheless I think (!) you don't need to care, since it is locked already properly for you by the kit.

Or is there view management that needs to occur? Ie. Would the custom cell need to register its table view as a subview of its superview?

Nope. As a matter of fact, you only call the view's drawing functions; the rest of view API lays there utterly unused.
---
Ondra Cada
OCSoftware: email@hidden http://www.ocs.cz
private email@hidden http://www.ocs.cz/oc
_______________________________________________
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 would you allow editing of a combo box's values?
      • From: Cryx <email@hidden>
References: 
 >Re: how would you allow editing of a combo box's values? (From: Cryx <email@hidden>)

  • Prev by Date: Re: how would you allow editing of a combo box's values?
  • Next by Date: Re: MOKit
  • Previous by thread: Re: how would you allow editing of a combo box's values?
  • Next by thread: Re: how would you allow editing of a combo box's values?
  • Index(es):
    • Date
    • Thread