panels

Discussion in 'Mac Programming' started by iancapable, Apr 26, 2007.

  1. iancapable macrumors 6502

    iancapable

    Joined:
    Oct 4, 2006
    Location:
    London, United Kingdom
    #1
    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.
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    Can you post a screenshot of what you're referring to in Dreamweaver?

    For free icons, try here (variety of sizes, styles), here (16x16), here (OS X style 32x32), and here (OS X 32x32). Oh, and check out here.
     
  3. iancapable thread starter macrumors 6502

    iancapable

    Joined:
    Oct 4, 2006
    Location:
    London, United Kingdom
    #3
    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! :)
     
  4. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #4
    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.

    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.
     
  5. iancapable thread starter macrumors 6502

    iancapable

    Joined:
    Oct 4, 2006
    Location:
    London, United Kingdom
    #5
    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).
     
  6. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #6
    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.
     
  7. iancapable thread starter macrumors 6502

    iancapable

    Joined:
    Oct 4, 2006
    Location:
    London, United Kingdom
    #7
    I might have to, or at least subclass it ;)

    I quite like the toolbar panel in Photoshop CS3
     

Share This Page