Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これが通常は推奨されないことはわかっていますが、NSPopupButton の NSPopupButtonCell にアクセスする必要があります。これを行う方法はありますか?
[myPopup cell];
あなたがそれについて考えるとき、ちょっと明白です。;)
ほんとだ、だけど。NSPopUpButton : NSButton : NSControl; NSControlあります-[cell]、そうNSPopUpButtonです。
NSPopUpButton : NSButton : NSControl
NSControl
-[cell]
NSPopUpButton
私が言おうとしているのは、次のことだと思います。探しているオブジェクトが持っている必要があるメソッドが見つからない場合は、そのスーパークラスを確認してください。(または、Xcode でテキスト補完といくつかの幸運な推測を使用するだけです。;)