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 > My Drawer Doesn't Appear?!

My Drawer Doesn't Appear?!
Thread Tools
Mac Elite
Join Date: Jan 2001
Location: New York
Status: Offline
Reply With Quote
May 9, 2001, 04:20 PM
 
This code should be showing a drawer

[[drawer[now] initWithContentSizeNSSize)NSMakeSize(120,20)
preferredEdgeNSRectEdge)NSMaxYEdge] alloc];
[drawer[now] setParentWindow:wins[now]];
[drawer[now] setContentViewNSView *)tf2[now]];
[drawer[now] open];

wins is an array of windows tf2 is an array of textfields

Thanks,
Dave

------------------
Think Different.
     
davecom  (op)
Mac Elite
Join Date: Jan 2001
Location: New York
Status: Offline
Reply With Quote
May 10, 2001, 05:14 PM
 
Is it possible that there is a minimum size for a drawer?
Any help greatly appreciated,
dave

------------------
Think Different.
     
davecom  (op)
Mac Elite
Join Date: Jan 2001
Location: New York
Status: Offline
Reply With Quote
May 10, 2001, 09:05 PM
 
If anybody has done drawers in non-IB could you post your code so I can check it against mine? This would be most appreciated
     
davecom  (op)
Mac Elite
Join Date: Jan 2001
Location: New York
Status: Offline
Reply With Quote
May 11, 2001, 04:13 PM
 
Sorry everyone - now I know why nobody responded - because my mistake was so blatant! Sheesh I can't believe I put the allocation after the initialization.
Sorry,
Dave

------------------
Think Different.
     
   
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:01 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2