Re: Imitating Mail's Interface
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