Próbuję utworzyć przypisany ciąg z przekreśleniem, jednak to proste zadanie wydaje się trudniejsze do wykrycia, niż się spodziewałem. Oto, co mam obecnie (co nie działa). Dzięki za pomoc!NSAttributedString z przekreśleniem
NSAttributedString *theTitle = [[[NSAttributedString alloc] initWithString:@"strikethrough text" attributes:[NSDictionary dictionaryWithObjectsAndKeys:[NSColor whiteColor], NSForegroundColorAttributeName, NSUnderlinePatternSolid, NSStrikethroughStyleAttributeName, nil]] autorelease];
Działa doskonale ... dzięki. – ambientdiscourse
To było bardzo pomocne. Dzięki! Warto zauważyć, że brakuje ci nawiasu zamykającego, aby zamknąć komunikat 'numberWithInteger:' po 'NSUnderlinePatternSolid | NSUnderlineStyleSingle' i before ', NSStrikethroughStyleAttributeName'. – morgant