문제

In Cocoa, a drawer can be attached to a window using the setParentWindow: method. Is it possible to attach a drawer to a view in some way?

도움이 되었습니까?

해결책

No. It wouldn't make sense to put a drawer on a view. For example how do you put a drawer on a button?

It seems Apple are using drawers less in each release of OS X. They seem to be being replaced with HUD style inspectors and 'inline' drawers. For example, Preview in 10.4 had a drawer, but in 10.5 this was replaced with a list that appeared inside the main window.

다른 팁

Matt Gemmell's attached window might serve your purposes or inspire a solution of your own: http://mattgemmell.com/2007/10/03/maattachedwindow-nswindow-subclass

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top