Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > Mac OS X Development Forums > Mac OS X Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-25-2011, 04:58 PM   #1 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 25
idanr84 is on a distinguished road
Default Implementing Twitter-Like Main Screen

I'm making my way from iOS development to Mac OS(Lion now) and I need to develop an app that its main screen looks much like the Twitter Mac client's one is looking.

So, I got some pretty basic questions that I couldn't find decisive answers too. (Please address the attached picture for reference)

1. How would you design the black side bar ? I assume I need an NSSplitView, but is the left view suppose to be some special Control or a Regular NSView which I put NSButtons above ? Moreover, I didn't see a way to set NSView's background color. (black in this case)

2. In the right view, same issue, what controls should I use ? is the upper view an NSTableHeaderView, or just an NSView, below an NSToolBar and below NSTableView ?

3. How can I put some view in the same line where the Maximize/Minimize button are ? (In the above picture, "Timeline" and "Rampage4real". Gotta love rampage

4. App design wise, would all the views in this screen should talk to the same WindowController delegate ? should there different delegates maybe ?

I'd appreciate any help/tips. Links to sample code would be great as well. Looks kinda different than iOS development, so I'm looking to do things as appropriate for Mac so please share some wisdom.
Attached Images
File Type: jpg Screen shot 2011-07-26 at 12.18.46 AM.jpg (19.2 KB, 14 views)
idanr84 is offline   Reply With Quote
Old 08-29-2011, 12:10 PM   #2 (permalink)
Registered Member
 
Join Date: Aug 2011
Posts: 1
CHARLEBOIS is on a distinguished road
Default

good post, thanks for post
CHARLEBOIS is offline   Reply With Quote
Old 09-03-2011, 02:24 PM   #3 (permalink)
Hindsight Labs LLC
 
stevenwei's Avatar
 
Join Date: Jan 2011
Location: Los Angeles, CA
Posts: 15
stevenwei is on a distinguished road
Default

We just did this for Paprika Mac so I've got a few pointers. Be warned that doing a Mac app is much more challenging than its iOS counterpart, especially if you want to design a 'modern' UI. (It took us probably 2-3x as long as expected.)

Quote:
1. How would you design the black side bar ? I assume I need an NSSplitView, but is the left view suppose to be some special Control or a Regular NSView which I put NSButtons above ? Moreover, I didn't see a way to set NSView's background color. (black in this case)
A split view is not really necessary, the side bar is always visible so you can just make a custom view and some buttons... put a placeholder NSView on the right side and have the buttons toggle what's visible in the placeholder.

You can use a NSBox and set its background color but I would recommend doing something interesting in Photoshop (making a gradient or textured background with an inner shadow, for example).

Quote:
2. In the right view, same issue, what controls should I use ? is the upper view an NSTableHeaderView, or just an NSView, below an NSToolBar and below NSTableView ?
It's probably just a custom NSView for the top section and a NSTableView below it. A NSToolbar has a very distinct look and isn't terribly customizable. Depending on your requirements, if you can require Lion only you'll have an easier time using View based Table Views (similar to iOS). Otherwise you have to use the older Cell based Table Views which are a pain in the *** to work with.

Quote:
3. How can I put some view in the same line where the Maximize/Minimize button are ? (In the above picture, "Timeline" and "Rampage4real". Gotta love rampage
Check out INAppStoreWindow: https://github.com/indragiek/INAppStoreWindow

It's not perfect but it is a good start.

Quote:
4. App design wise, would all the views in this screen should talk to the same WindowController delegate ? should there different delegates maybe ?
Depends on the design of your app, but we found it very natural to put each "tab" section in its own view controller (kind of like how you would do it on iOS). You can use NSViewController but it isn't nearly as useful as its UIViewController counterpart.

Quote:
I'd appreciate any help/tips. Links to sample code would be great as well. Looks kinda different than iOS development, so I'm looking to do things as appropriate for Mac so please share some wisdom.
Be aware that apps like Twitter/Reeder/Sparrow are doing a LOT of custom work to look the way they do, so if that's the effect you're going for, be prepared.
__________________
Paprika Recipe Manager - Delightfully simple recipe management.
Packing Pal - Makes packing for trips easy.
stevenwei is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 383
10 members and 373 guests
Creativ, Emy, husthlj, illogical, LegionMD, LunarMoon, Murphy, padsoftware, stanny, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,677
Threads: 94,127
Posts: 402,916
Top Poster: BrianSlick (7,990)
Welcome to our newest member, husthlj
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:16 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0