On May 18, 2014, at 6:22 PM, Uli Kusterer <witness.of.teacht...@gmx.net> wrote:
> On 18 May 2014, at 23:06, Luther Baker <lutherba...@gmail.com> wrote: >> Trying my hand at some Cocoa development ... is there an SDK around the >> tabs used in Finder or Safari? >> >> If not, is there a popular library that folks are using ( >> https://github.com/rsms/chromium-tabs ?) or is this something folks are >> generally building from ground up? > > Which of the features do you need? Do you need to be able to > drag/drop/re-arrange tabs? In any event, it may be helpful to know that > NSTabView can be used without a border and without actual tabs at the top, as > an invisible, generic paging view. So you could let that take care of > correctly doing display, focus-switching etc. and just create a control that > draws the actual tabs to click at. Of course, if you want the tabs to be on your title bar, like what Chrome and the new Firefox do, you’ll need some NSWindow trickery. What I would personally do? I would create a view subclass and draw the tabs myself with Core Graphics, and then add that view as a subview of the target window’s theme view. Then I’d do what Uli suggested and use an NSTabView to switch between content (UNLESS you’re using WebKit - then switch the active WebFrame). But you should tell us more so that we can get some additional information and give better advice. > > Cheers, > -- Uli Kusterer > “The Witnesses of TeachText are everywhere...” > http://zathras.de > > > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/sevenbitstech%40gmail.com > > This email sent to sevenbitst...@gmail.com
signature.asc
Description: Message signed with OpenPGP using GPGMail
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com