• 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
An update and more questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

An update and more questions


  • Subject: An update and more questions
  • From: Andreas Schwarz <email@hidden>
  • Date: Tue, 19 Mar 2002 15:23:29 -0800

First off, I got [NSApp preventWindowOrdering] to work. Seems I needed to also override shouldDelayWindowOrderingForEvent: in my view to return YES. It was right there in the docs, I should have seen it. Oops!

Now, for some questions I have. First, NSOutlineView always auto-expands items during drag & drop, but I would like to turn this off (well, give the user the option, anyway). I couldn't find any other way to do it except return NO in the outlineView:shouldExpandItem: delegate method if there is a drag ocurring. This works wonderfully, except when you drag onto an expandable item, the triangle still flashes as if it is going to open (though it doesn't). So I'd prefer a more complete solution if anyone has one :-).

Second is another NSOutlineView question. setIndentationperLevel: applies to the top level too, which means with big indentations there is a large gap between the edge of the view and the beginning of the first level, which is rather a waste of space. I'd like to be able to have the top level not indented at all (flush with the edge of the view, then) if possible. Is there a good way to do this? I have one idea myself, but it's a bit convoluted and if there's something easy I'm missing I don't want to waste my time doing it that way.

Last, is there any way to change the font/size of text in an NSMenuItem? I assume not, but if there is it would be nice to know.

Many thanks,
Andreas Schwarz
http://homepage.mac.com/schwarz
_______________________________________________
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: Re: Threading!
  • Next by Date: Re: How to use a subclass of NSTextView inside a NSScrollView?
  • Previous by thread: Re: Threading!
  • Next by thread: Custom View loops in sendEvent
  • Index(es):
    • Date
    • Thread