Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
armadsen committed Mar 11, 2013
2 parents f0bff2e + d096664 commit b67a4cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ How to Use ORSSerialPort

The ORSSerialPort library consists of only two classes: `ORSSerialPort` and `ORSSerialPortManager`. To begin using ORSSerialPort in your project, drag the files in the "Source" folder into your Xcode project. ORSSerialPort.h/m are required, while ORSSerialPortManager.h/m are optional, but useful (see below). Next, add `#import "ORSSerialPort.h"` and `#import "ORSSerialPortManager.h"` to the top of the source code files in which you'd like to use ORSSerialPort.

ORSSerialPort relies on IOKit.framework, so you must add this framework to the "Link Binary With Libraries" build phase for your target. In your projects settings, select your application's target, then click on the "Build Phases" tab. Expand the "Link Binary With Libraries" section, then click the "+" button in the lower left corner to add a new Framework. In the list that appears, find and select IOKit.framework, then click "Add".
ORSSerialPort relies on IOKit.framework, so you must add this framework to the "Link Binary With Libraries" build phase for your target. In your project's settings, select your application's target, then click on the "Build Phases" tab. Expand the "Link Binary With Libraries" section, then click the "+" button in the lower left corner to add a new Framework. In the list that appears, find and select IOKit.framework, then click "Add".

ORSSerialPort can be used in applications targeting Mac OS X 10.6.8 and later. However, due to its use of ARC (see note below) and modern Objective-C syntax, it must be compiled on a machine running Mac OS X Lion with the LLVM 4.0 or later compiler, which is included in Xcode 4.4 and later.
ORSSerialPort can be used in 64-bit applications targeting Mac OS X 10.6.8 and later. However, due to its use of ARC (see note below) and modern Objective-C syntax, it must be compiled on a machine running Mac OS X Lion with the LLVM 4.0 or later compiler, which is included in Xcode 4.4 and later.

*Important Note:* ORSSerialPort relies on Automatic Reference Counting (ARC). If you'd like to use it in a non-ARC project, you'll need to open the "Compile Sources" build phase for the target(s) you're using it in, and add the -fobjc-arc flag to the "Compiler Flags" column for ORSSerialPort.m and ORSSerialPortManager.m. ORSSerialPort will generate a compiler error if ARC is not enabled.

Expand Down
2 changes: 0 additions & 2 deletions Source/ORSSerialPortManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ - (void)registerForNotifications

- (void)systemWillSleep:(NSNotification *)notification;
{
NSLog(@"%s", __PRETTY_FUNCTION__);
NSArray *ports = self.availablePorts;
for (ORSSerialPort *port in ports)
{
Expand All @@ -168,7 +167,6 @@ - (void)systemWillSleep:(NSNotification *)notification;

- (void)systemDidWake:(NSNotification *)notification;
{
NSLog(@"%s", __PRETTY_FUNCTION__);
NSArray *portsToReopen = [self.portsToReopenAfterSleep copy];
for (ORSSerialPort *port in portsToReopen)
{
Expand Down

0 comments on commit b67a4cf

Please sign in to comment.