• 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 to Create Auto-resize TableView or NSTextField?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to Create Auto-resize TableView or NSTextField?


  • Subject: Re: How to Create Auto-resize TableView or NSTextField?
  • From: "Gary L. Wade" <email@hidden>
  • Date: Mon, 14 Jun 2010 19:09:45 -0700
  • Thread-topic: How to Create Auto-resize TableView or NSTextField?

Try "connecting the dots" (figuratively and literally) between NSTextView
and NSDecimalTabStopType.

On 06/14/2010 6:24 AM, "John Gordon" <email@hidden> wrote:

> All,
>
> I am tasked with creating a receipt for printing purposes, imagine a grocery
> receipt:
>
> Item 1............$5
> Item 2............$5.95
> ....
>
> Given that the list of items on a receipt can be as long as needed, I need a
> way to add the items to the NSView and have the items properly size
> themselves, and have static data below the list move to new locations like
> so:
>
> *****Happy Store Grocery*******
>
> item 1.........................$5
> item 2.........................$6
> item 3.........................$7
>
>
> ******** CUSTOMER COPY********    <-- This needs to move down when the items
> list grows.
>
>
> I've tried using the NSTextfield, but it hasn't been too successful.  I've
> also tried an NSTableView, but can't figure out how to force it to resize
> based on the number of rows in the table.
>
> What approach would you use, and could you provide a code sample?
>
>
> Thanks!!


_______________________________________________

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: 
 >How to Create Auto-resize TableView or NSTextField? (From: John Gordon <email@hidden>)

  • Prev by Date: Re: Adding attributes to NSMutableAttributedString
  • Next by Date: Re: NSRunLoop
  • Previous by thread: Re: How to Create Auto-resize TableView or NSTextField?
  • Next by thread: CalendarStore updating without iCal?
  • Index(es):
    • Date
    • Thread