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.
私はNSBezierPath自分で作成したものを持っていて、それに-strokeと呼びました。オブジェクトの割り当てを解除せずにビューから削除/削除するにはどうすればよいですか?
NSBezierPath
-strokeメッセージはNSBezierPath、現在の描画コンテキストで自分自身をレンダリングするように指示します。ビューにパスを描画し、ストロークしたパスを消したい場合は、パスなしでビューを再描画します。
-stroke
描画を一時的に無効にしたい場合は、 を[NSColor clearColor]呼び出す前に設定できますstroke。
[NSColor clearColor]
stroke