• 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
Help with window design
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Help with window design


  • Subject: Help with window design
  • From: Timothy Larkin <email@hidden>
  • Date: Fri, 27 Sep 2002 09:19:11 -0400

I am trying to create a window that has a view similar to the debug view in Project Builder. It consists of a text view for editing, with a column at the left edge that has a cell corresponding to each text line. Each cell can flag a line by showing a mark of some sort.

My attempts so far have been based on creating a NSTextView and a narrow NSTableView, side by side, which scroll together, because they are both subviews of a custom view that is itself inside an NSScrollView.

I have this working so that I can edit and scroll the text view. But when I try to resize the window, the text view does not resize correctly with the window. Alternatively, the text view resizes correctly so long as I haven't typed anything into it; but as soon as I type something, the resizing behavior breaks again.

Has anyone, who would be willing to share a code or a strategy, created a text-table combination like this? Or seen some example code that shows how to do it?
--
Timothy Larkin
Abstract Tools
Caroline, NY
_______________________________________________
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: detecting drag in table column ?
  • Next by Date: Re: nil messaging? Is it safe?
  • Previous by thread: Re: detecting drag in table column ?
  • Next by thread: Window Title bar size?
  • Index(es):
    • Date
    • Thread