I\'m trying to print a document. The document is an array of NSImageReps, or a single NSPDFImageRep, which has multiple pages. I\'m having trouble figuring out how to use the NSPrintOperation class to
I have a working NSCollectionView with one minor, but critical, exception. Getting and highlighting the selected item within the collection.
I\'m trying to implement typewriter scroll开发者_Python百科ing in my Cocoa text editor, keeping the insertion point centered vertically in its scrollview.
I have a program I am writing.I want to use a fancy font.Can I just embed my font into my bundle and use it from there.
I\'m having an NSView, which is set as the view: outlet of an NSMenuItem. The view contains an NSTableView (inside an NSScrollView) and an NSSearchField. The NSMenu is shown when the user clicks a spe
I have an NSView in which the user can draw circles. These circles are stored as an array of NSBezierPaths, and in drawRect:, I loop through the array and call -stroke on each of the paths. How do I a
Initially I created a simple program with a custom NSView.I drew a picture (certificate) and printed it!beautiful!Everything worked great!
I am trying to speed my gui that loads very slow slow when I am loading a large project (the gui is a representation of groups and sub groups and is made up of 开发者_开发技巧many views).During this p
I have a CGContext, which I can turn into an NSGraphicsContext. I have an NSWindow with a clipRect for the context.
I try add subview but not work. My code is: HomeViewController* homeViewController = [[HomeViewController alloc] initWithNibName:@\"HomeView\" bundle:nil];