Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 15, 2013, 03:16 PM   #1
cpuin
macrumors member
 
Join Date: Feb 2013
GUI questions?

Hi,

i see a lot of applications that use custom user interface.Custom colours, windows, buttons etc.It results very difficult to me to do it.Is there some easier approach to do that, bot only by subclassing.....?
cpuin is offline   0 Reply With Quote
Old Mar 15, 2013, 07:20 PM   #2
simsaladimbamba
macrumors Core
 
simsaladimbamba's Avatar
 
Join Date: Nov 2010
Location: located
Do you have any specific applications you can name to show what you mean?
__________________
living on the moderately profane edge
simsaladimbamba is offline   0 Reply With Quote
Old Mar 15, 2013, 08:46 PM   #3
ArtOfWarfare
macrumors 601
 
ArtOfWarfare's Avatar
 
Join Date: Nov 2007
Send a message via Skype™ to ArtOfWarfare
Implement custom drawRect: methods in your view subclasses if you'd like a really unique look.

If you just want to tint standard UI elements, a lot of them have a tint property for easily changing colors.
ArtOfWarfare is offline   0 Reply With Quote
Old Mar 16, 2013, 03:37 AM   #4
cpuin
Thread Starter
macrumors member
 
Join Date: Feb 2013
Clean My Mac 2

Clean My Mac 2
for instance
cpuin is offline   0 Reply With Quote
Old Mar 17, 2013, 01:35 AM   #5
Sydde
macrumors 68000
 
Sydde's Avatar
 
Join Date: Aug 2009
Custom windows can be done rather easily, but you have to create the window programmatically, using settings that exclude normal window elements, though you will probably have to subclass NSView in order to draw any special elements and have them respond in predictable ways.

Buttons are even easier: you just make a button that has no borders or image and underlay it with the image you want for it, no subclassing involved.

Most of the customized interface stuff does require a fair bit of work, because Apple prefers that you use standard elements as much as possible so that the UI remains consistent getting too unique for no particularly good reason other than uniqueness really serves only to confuse or annoy the user.
__________________
You got to be a spirit. You can't be no ghost.
Sydde is offline   0 Reply With Quote
Old Mar 27, 2013, 04:30 AM   #6
Hans Kamp
macrumors member
 
Join Date: Mar 2013
Location: Enschede, Netherlands
In the past I have done this with Windows and OS/2 Warp, making custom controls, and I find the drawing hard to debug and I agree with Sydde.

I made custom buttons, custom listboxes and custom menu items.
Hans Kamp is offline   0 Reply With Quote
Old Mar 27, 2013, 05:04 AM   #7
ghellquist
macrumors regular
 
Join Date: Aug 2011
Location: Stockholm Sweden
It is worth remembering that custom stuff might get broken by new OS updates. Using the standard stuff, there will be descriptions on how to upgrade. Example might be the retina resolution Macs that arrived rather recently, where apps had to be fixed.

//Gunnar
ghellquist is offline   1 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Tags
custom gui, subclassing

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump


All times are GMT -5. The time now is 04:33 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC