View Full Version : panels
iancapable
Apr 26, 2007, 10:19 AM
Hi! I'm trying to pick up objective-c, lots of things I like and don't like so far, but not bad overall :)
Now down to business, because I hate pgadmin III so much I want to develop one with cocoa (I'm actually quite adept with a bit of code here and there - 22 languages to be exact), I've choses a sort of dreamweaver - photoshop style look with panel windows for tool bar and tree, then using a tab view in the main window for results/queries etc.
What I would like to do is rip off one very nice thing in dreamweaver - the top toolbar panel has it's window decoration on the side... I WANT IT! Does anyone know if this is possible? I think it seems I may have to do it manually? Is there a control available to do this? I promise to share my app!
Also any icon set suggestions would be appreciated, I'm planning on keeping this free and open.
kainjow
Apr 26, 2007, 11:23 AM
Can you post a screenshot of what you're referring to in Dreamweaver?
For free icons, try here (http://www.iconarchive.com/) (variety of sizes, styles), here (http://www.famfamfam.com/lab/icons/) (16x16), here (http://www.kombine.net/icons.php) (OS X style 32x32), and here (http://www.cocoadev.com/index.pl?RoyaltyFreeIcons) (OS X 32x32). Oh, and check out here (http://www.smashingmagazine.com/2006/12/03/more-symbols-buttons-and-icons-for-free/).
iancapable
Apr 26, 2007, 11:27 AM
Can you post a screenshot of what you're referring to in Dreamweaver?
For free icons, try here (http://www.iconarchive.com/) (variety of sizes, styles), here (http://www.famfamfam.com/lab/icons/) (16x16), here (http://www.kombine.net/icons.php) (OS X style 32x32), and here (http://www.cocoadev.com/index.pl?RoyaltyFreeIcons) (OS X 32x32). Oh, and check out here (http://www.smashingmagazine.com/2006/12/03/more-symbols-buttons-and-icons-for-free/).
erm I'm at work and don't have one (As I use linux at work). It kinda looks like a normal panel window (with smaller decorations) but instead of the decorator being on the top it's on the side. GRR I'll post a screenshot when I get home.
I really like the second set of icons, they're perfect! You're a star! :)
kainjow
Apr 26, 2007, 01:00 PM
Are you referring to windows that have the title bar on the side? There is no direct support for that in Cocoa, but Carbon supports it. I fiddled with it for a little bit and got it partially working. I posted my results on CocoaDev (http://www.cocoadev.com/?TitlebarOnSide).
I would suggest not going this route since it's not supported directly in Cocoa. And from what I could tell, the window you create is a Carbon window (behaves slightly differently than Cocoa windows).
Stick with a standard NSPanel.
iancapable
Apr 27, 2007, 12:23 AM
Are you referring to windows that have the title bar on the side? There is no direct support for that in Cocoa, but Carbon supports it. I fiddled with it for a little bit and got it partially working. I posted my results on CocoaDev (http://www.cocoadev.com/?TitlebarOnSide).
I would suggest not going this route since it's not supported directly in Cocoa. And from what I could tell, the window you create is a Carbon window (behaves slightly differently than Cocoa windows).
Stick with a standard NSPanel.
Thanks, that was what I was looking for, but I would personally like it to be cocoa as I can't be arsed to go down the carbon route (if I did, I would end up using C++ and that means I don't get to learn anything fun).
kainjow
Apr 27, 2007, 01:01 AM
Thanks, that was what I was looking for, but I would personally like it to be cocoa as I can't be arsed to go down the carbon route (if I did, I would end up using C++ and that means I don't get to learn anything fun).
Well not everything can be handed to you free of charge :) If you're developing in Cocoa, expect to use Carbon occasionally. But I'd stick with my original advice, use a standard NSPanel to avoid headaches.
iancapable
Apr 27, 2007, 04:21 AM
Well not everything can be handed to you free of charge :) If you're developing in Cocoa, expect to use Carbon occasionally. But I'd stick with my original advice, use a standard NSPanel to avoid headaches.
I might have to, or at least subclass it ;)
I quite like the toolbar panel in Photoshop CS3
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.