Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > CollapseWindow trouble

CollapseWindow trouble
Thread Tools
Inquisitor
Fresh-Faced Recruit
Join Date: Oct 2002
Status: Offline
Reply With Quote
Oct 28, 2002, 03:10 AM
 
Hi,

Does anybody know how to get CollapseWindow to work with windows of a class other than kDocumentWindow?
Or how to hide the titlebar of a document window?
I'm painting my own GUI and don't want any system controls to be visible, but I definitely must have this "shloop" effect.
It is possible, because I actually saw some windows acting this way (e.g. the round speech recognition window in GNU chess).
But how??

Thanks in advance!
     
00101001
Mac Enthusiast
Join Date: Jan 2001
Status: Offline
Reply With Quote
Oct 28, 2002, 10:40 AM
 
you have to subclass NSWindow, and overide a few functions... check out this sample code:

http://developer.apple.com/samplecod...rentWindow.htm

I don't know about the collapse window thing.
     
Inquisitor  (op)
Fresh-Faced Recruit
Join Date: Oct 2002
Status: Offline
Reply With Quote
Oct 28, 2002, 02:12 PM
 
Any chance to do this in carbon and not cocoa? Have to port C++ code and really don't want to mess with Objective C.
     
   
Thread Tools
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 04:13 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,