textured windows/animated buttons
(cocoa)
Does anybody know how to set the texture for windows?
Second has anybody subclassed NSButton so that it will animate when the mouse hovers above it? Or should i make my own?
if you are curious i have a game app where the screens are changed by switching the content views of NSBoxes. I got boxes for save/resume , a nsview, options, multiplayer, and the main screen(with play,resume,quit,etc buttons).
i want to set a picture for the backaround for each content view, without using a nsimageview, and was wondering if there is a way to do it programmatically or through IB.
This is all for polish so it isnt really necessary, but i would appreciate it if someone could enlighten me.
Does anybody know how to set the texture for windows?
Second has anybody subclassed NSButton so that it will animate when the mouse hovers above it? Or should i make my own?
if you are curious i have a game app where the screens are changed by switching the content views of NSBoxes. I got boxes for save/resume , a nsview, options, multiplayer, and the main screen(with play,resume,quit,etc buttons).
i want to set a picture for the backaround for each content view, without using a nsimageview, and was wondering if there is a way to do it programmatically or through IB.
This is all for polish so it isnt really necessary, but i would appreciate it if someone could enlighten me.
your post brought something i knew to mind: Mac os X has been known to be an upgrade for graphical uberness, yet the windows and textures seem to be.....well.. "mandatorily standardized" :envy:
All "skinned" apps seem to have died since os X.
Perhaps you could try drawing just slightly out of the window's co-ordinates? its somewhat cheap, it would hard to make it be able to see the window buttons, and might look awful but its a worth a try.
Good luck,
Tyrtael
All "skinned" apps seem to have died since os X.
Perhaps you could try drawing just slightly out of the window's co-ordinates? its somewhat cheap, it would hard to make it be able to see the window buttons, and might look awful but its a worth a try.
Good luck,
Tyrtael
or i could lockFocus on the window and draw.
im hesitant on doing it because im not sure if it is "right".
ive been searching around and havent found much info but ill post back if i do.

im hesitant on doing it because im not sure if it is "right".
ive been searching around and havent found much info but ill post back if i do.
I wrote my own skin engine a while back. It replaced the window texture with my own textures. Basically, what you have to do is make your own NSView and make sure that's the view for your window.
You'll need to make your own instance of NSWindow aswell.
If the demand is high, I might consider making it open source and ask Camacho to put it on this site.
You'll need to make your own instance of NSWindow aswell.
If the demand is high, I might consider making it open source and ask Camacho to put it on this site.
"When you dream, there are no rules..."
Good example of something that can be used to make "skinned" windows is the OvalWindow example on the BigNerdRanch's site.
http://www.bignerdranch.com/Resources/Examples.html
There is also an example of this kind on apple's website but I don't remember where.
http://www.bignerdranch.com/Resources/Examples.html
There is also an example of this kind on apple's website but I don't remember where.
Possibly Related Threads...
| Thread: | Author | Replies: | Views: | Last Post | |
| Game buttons | Miglu | 7 | 3,360 |
Sep 25, 2010 01:42 PM Last Post: AnotherJake |
|
| Strange bug with yellow minimize buttons | GolfHacker | 21 | 8,926 |
Jun 20, 2007 05:15 PM Last Post: GolfHacker |
|
| GLUI buttons | eShad0w | 1 | 6,024 |
Jul 6, 2006 12:17 PM Last Post: Duane |
|
| Animated Sprites Games under Mac OS X - Where to Start ? | Trax | 11 | 6,001 |
May 1, 2005 09:10 PM Last Post: Dan Potter |
|
| Receiving mouse clicks from different buttons | Tobi | 6 | 4,515 |
May 20, 2002 12:22 AM Last Post: Tobi |
|

