• 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: NSDocument & NSOutlineView questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDocument & NSOutlineView questions


  • Subject: Re: NSDocument & NSOutlineView questions
  • From: Brian Webster <email@hidden>
  • Date: Sun, 14 Oct 2001 13:00:55 -0500

On Saturday, October 13, 2001, at 05:52 PM, cocoa-dev-
email@hidden wrote:

#1) My app is a viewer only. Therefore the idea of starting up a "blank"
document at the beginning is quite
undesireable. Is there a way I can override this behavior to say,
display a text field asking for a URL?

Implement the application delegate method -applicationShouldOpenUntitledFile: and return NO. If you want to display something upon the app launching, implement -applicationDidFinishLaunching: in the app delegate and do it there.

#2) When I use setIntercellSpacing for an outline view in a scroll view,
it ALWAYS gets a rather unsightly visual
glitch at the upper right corner where the header cells meet the edge of
the scrollview, specifically a little white
space. Resizing removes this, until the window loses focus, when it
comes back. Am I doing something wrong here?
I'm ust setIntercellSpacing:NSMakeSize( 0,0 ) -ing the outline view in
windowControllerDidLoadNib.

After setting the spacing, call sizeLastColumnToFit. This should extend the rightmost column to fill the entire width of the scroll view.

--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster


  • Prev by Date: Re: java
  • Next by Date: Re: NSScrollView: Limiting scrolling size...
  • Previous by thread: NSDocument & NSOutlineView questions
  • Next by thread: NSScrollView: Limiting scrolling size...
  • Index(es):
    • Date
    • Thread