Sunday, March 23, 2014

Saturday, March 22, 2014

NSArray Call one Function for all item at once

[_buttonArray makeObjectsPerformSelector:@selector(setState:)                                  withObject:(id)NSOffState];    [sender setState:NSOnState];

Tuesday, March 18, 2014

PDF Form Editor

A must-have app that will save you time and eliminate the need to print, fax or mail documents and forms for signature. Once you've tried it, you'll wonder how you ever got along without it!

As it turns out, We end up having to sign a lot of documents, such as contracts, IRS forms, and the like. Many of these are in PDF form (bravo), and some even let us fill them out via my keyboard (even better).

Luckily, PDF Form Editor makes all that superflous. It’s super easy to get your pen and paper signature onto a PDF. Here’s how.

• Add Text,you can create text content on any PDF page, including images
• Sign documents with Mac
• Documents are imported and sent directly from your computer to maintain complete privacy and security.
• No need to print, sign, or fax documents again
• Full Offline - Sign documents offline, never fear bad internet in front of clients
• Draw a shape on your PDF File,you can draw, position and resize a multitude of shapes, including Rectangles, Lines, Circle.
• Export into a PDF

Download Link
https://itunes.apple.com/us/app/pdf-form-editor/id845467240?mt=12


 

Monday, March 10, 2014

NSWindow Show as Sheet

       我想做一个Word Collection类的app,因此需要实现显示“加入item”的功能。开始使用NSPopover,但是NSTextview却无法响应输入。google半天,后来发现可能是apple不推荐在NSPopover上使用NSTextview。因此,切换成使用NSPanel了

具体使用方法
(1)
@interface SheetDemoWC : NSWindowController
{
    IBOutlet NSPanel *theSheet;
   
}
- (IBAction) showTheSheet:(id)sender ;
@end


- (IBAction) showTheSheet:(id)sender {
   
    [NSApp beginSheet:theSheet
       modalForWindow:self.window
        modalDelegate:self
       didEndSelector:nil
          contextInfo:nil];
   
}

-(IBAction)endTheSheet:(id)sender {
   
    [NSApp endSheet:theSheet];
    [theSheet orderOut:sender];
   
}

(2)添加panel,然后就可以按照自己需要添加控件了。由于NSPanel继承自NSWindow,所以可以使用NSTextview