• 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: email@hidden
  • Date: Sun, 03 Sep 2006 14:17:57 +0100

So the hierarchy would be:
NSSplitView [
	leftCustomView []
	rightCustomView []
]

Then call addSubView on the leftCustomView in awakeFromNib to add your views that /really/ contain the components?

Quoting Dave Batton <email@hidden>:

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


_______________________________________________
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: Dave Batton <email@hidden>
References: 
 >Re: Imitating Mail's Interface (From: Dave Batton <email@hidden>)

  • Prev by Date: Re: How to make Metronome?
  • Next by Date: Re: How to make Metronome?
  • Previous by thread: Re: Imitating Mail's Interface
  • Next by thread: Re: Imitating Mail's Interface
  • Index(es):
    • Date
    • Thread