• 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: NSDatepicker inside a TableViewColumn
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDatepicker inside a TableViewColumn


  • Subject: Re: NSDatepicker inside a TableViewColumn
  • From: "email@hidden" <email@hidden>
  • Date: Sat, 19 Jun 2010 21:35:05 +0100

On 19 Jun 2010, at 19:46, Junio Gonçalves Vitorino wrote:

> Hello, I'm working on a project that the user should fill columns of a
> tableview (that maps to a coredata entity) with dates. After googling I
> found some posts saying that is impossible to place a NSDatepicker inside a
> TableViewColumn, is that true?
>
> If not, why I can't drag a NSDatepicker to my TableViewColumn in IB? I
> should do it programatically?
>
NSDatepicker is not an NSCell subclass so you cannot display it in a table column.

I would suggest that you display the formatted date in an NSTextField cell.
The user can click the cell to bring up the NSDatePicker instance in a child window.

Child window usage is demonstrated here:
http://mattgemmell.com/files/source/maattachedwindow.zip

Regards

Jonathan Mitchell

Developer
Mugginsoft LLP
http://www.mugginsoft.com

_______________________________________________

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

References: 
 >NSDatepicker inside a TableViewColumn (From: Junio Gonçalves Vitorino <email@hidden>)

  • Prev by Date: Re: NSTreeController and insertObject:atArrangedObjectIndexPath:
  • Next by Date: raising NSException between Controllers
  • Previous by thread: NSDatepicker inside a TableViewColumn
  • Next by thread: [iPhone] Detect touches on MKMapView
  • Index(es):
    • Date
    • Thread