와 이상한 문제를, -setClip 사용. 정확히 다음과 같습니다. - (void)drawRect:(NSRect)rect
{
// Create and fill the shown path
NSBezierPath *path = [NSBezierPath
bezierPathWithRoundedRect:[self bounds]
둥근 모서리와 그림자가있는 사용자 지정 NSView를 만들려고합니다. 그 결과가 NSView의 둥근 모서리가 그려집니다 방법 - (void)drawRect:(NSRect)dirtyRect
{
NSRect rect = NSMakeRect([self bounds].origin.x + 3, [self bounds].origin.y + 3, [self
더 이상 사용되지 않는 API를 사용하지 않고 그림자로 그릴 다중 선 텍스트를 얻으려고합니다. 그것은 한 줄에 잘 작동합니다. -(void)drawRect:(CGRect)rect
{
NSMutableParagraphStyle *paragraph = [[NSMutableParagraphStyle defaultParagraphStyle] mutabl
NSComboBox에는 필자가 필요로하는 기능이 없기 때문에 내 자신의 comboBox를 작성하려고합니다. 그래서 NSTextField를 서브 클래 싱하고 textinput을 모니터하고 stringValue에 따라 TableView가 데이터를 가져옵니다. 그래서 TableView를 표시해야 할 때 TextFields 수퍼 뷰가 NSScrollView를 추가