• 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: Imitating Mail's Interface
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Imitating Mail's Interface


  • Subject: Re: Imitating Mail's Interface
  • From: Dave Batton <email@hidden>
  • Date: Sat, 2 Sep 2006 18:26:25 +0200

Drarok,


The main problem I'm struggling with is that it's REALLY awkward trying to manipulate subviews in Interface Builder. Say I need to move the NSTableView around because it's overlapping...

I ran into this too. It's impossible to get the desired alignment of objects within an NSSplitView within Interface Builder, and it's difficult to make the corrections procedurally at runtime.


So instead I just wrapped up two custom NSViews within the splitter, and moved the contents of each into a separate view. When the window is loaded I load up the views into the empty custom views with - addSubview:. Works like a charm. It's much easier now to work with the objects in Interface Builder.

I also had great luck getting the slitters to look and _behave_ just like the ones in Mail by subclassing Ken Ferry's KFSplitView class: <http://homepage.mac.com/kenferry/software.html>


-- Dave Batton Mere Mortal Software http://www.Mere-Mortal-Software.com/


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Imitating Mail's Interface
      • From: email@hidden
  • Prev by Date: Object Layering is Changing When Calling -addSubview:
  • Next by Date: Re: Object Layering is Changing When Calling -addSubview:
  • Previous by thread: Re: Imitating Mail's Interface
  • Next by thread: Re: Imitating Mail's Interface
  • Index(es):
    • Date
    • Thread