diff --git a/IRCClient.xcodeproj/project.pbxproj b/IRCClient.xcodeproj/project.pbxproj index f3942ca..21cb83b 100644 --- a/IRCClient.xcodeproj/project.pbxproj +++ b/IRCClient.xcodeproj/project.pbxproj @@ -7,13 +7,13 @@ objects = { /* Begin PBXBuildFile section */ - 868374A91C24E774005B97E5 /* IRCClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 868374A81C24E774005B97E5 /* IRCClient.h */; }; + 866EF0101C25FF07006303A1 /* libircclient.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 866EF00F1C25FF07006303A1 /* libircclient.a */; }; + 868374A91C24E774005B97E5 /* IRCClient.h in Headers */ = {isa = PBXBuildFile; fileRef = 868374A81C24E774005B97E5 /* IRCClient.h */; settings = {ATTRIBUTES = (Public, ); }; }; 86B6232C1C21FD7C00D6E3AF /* README in Resources */ = {isa = PBXBuildFile; fileRef = 86B6232B1C21FD7C00D6E3AF /* README */; }; 86D784A61C24C39F00C7458D /* libirc_errors.h in Headers */ = {isa = PBXBuildFile; fileRef = 86D784A01C24C39F00C7458D /* libirc_errors.h */; }; 86D784A71C24C39F00C7458D /* libirc_events.h in Headers */ = {isa = PBXBuildFile; fileRef = 86D784A11C24C39F00C7458D /* libirc_events.h */; }; 86D784A81C24C39F00C7458D /* libirc_options.h in Headers */ = {isa = PBXBuildFile; fileRef = 86D784A21C24C39F00C7458D /* libirc_options.h */; }; 86D784A91C24C39F00C7458D /* libirc_rfcnumeric.h in Headers */ = {isa = PBXBuildFile; fileRef = 86D784A31C24C39F00C7458D /* libirc_rfcnumeric.h */; }; - 86D784AA1C24C39F00C7458D /* libircclient.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 86D784A41C24C39F00C7458D /* libircclient.a */; }; 86D784AB1C24C39F00C7458D /* libircclient.h in Headers */ = {isa = PBXBuildFile; fileRef = 86D784A51C24C39F00C7458D /* libircclient.h */; }; 86F2EFF81C21F81900B033A4 /* IRCClientChannel_Private.h in Headers */ = {isa = PBXBuildFile; fileRef = 86F2EFF11C21F81900B033A4 /* IRCClientChannel_Private.h */; }; 86F2EFF91C21F81900B033A4 /* IRCClientChannel.h in Headers */ = {isa = PBXBuildFile; fileRef = 86F2EFF21C21F81900B033A4 /* IRCClientChannel.h */; }; @@ -25,13 +25,13 @@ /* End PBXBuildFile section */ /* Begin PBXFileReference section */ + 866EF00F1C25FF07006303A1 /* libircclient.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libircclient.a; sourceTree = ""; }; 868374A81C24E774005B97E5 /* IRCClient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = IRCClient.h; sourceTree = ""; }; 86B6232B1C21FD7C00D6E3AF /* README */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = README; sourceTree = ""; }; 86D784A01C24C39F00C7458D /* libirc_errors.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = libirc_errors.h; sourceTree = ""; }; 86D784A11C24C39F00C7458D /* libirc_events.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = libirc_events.h; sourceTree = ""; }; 86D784A21C24C39F00C7458D /* libirc_options.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = libirc_options.h; sourceTree = ""; }; 86D784A31C24C39F00C7458D /* libirc_rfcnumeric.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = libirc_rfcnumeric.h; sourceTree = ""; }; - 86D784A41C24C39F00C7458D /* libircclient.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libircclient.a; sourceTree = ""; }; 86D784A51C24C39F00C7458D /* libircclient.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = libircclient.h; sourceTree = ""; }; 86F2EFE61C21F73600B033A4 /* IRCClient.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = IRCClient.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 86F2EFEB1C21F73600B033A4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; @@ -49,7 +49,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - 86D784AA1C24C39F00C7458D /* libircclient.a in Frameworks */, + 866EF0101C25FF07006303A1 /* libircclient.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -59,11 +59,11 @@ 86D7849F1C24C39F00C7458D /* libircclient */ = { isa = PBXGroup; children = ( + 866EF00F1C25FF07006303A1 /* libircclient.a */, 86D784A01C24C39F00C7458D /* libirc_errors.h */, 86D784A11C24C39F00C7458D /* libirc_events.h */, 86D784A21C24C39F00C7458D /* libirc_options.h */, 86D784A31C24C39F00C7458D /* libirc_rfcnumeric.h */, - 86D784A41C24C39F00C7458D /* libircclient.a */, 86D784A51C24C39F00C7458D /* libircclient.h */, ); path = libircclient; @@ -110,8 +110,8 @@ isa = PBXHeadersBuildPhase; buildActionMask = 2147483647; files = ( - 86F2EFFE1C21F81900B033A4 /* IRCClientSessionDelegate.h in Headers */, 868374A91C24E774005B97E5 /* IRCClient.h in Headers */, + 86F2EFFE1C21F81900B033A4 /* IRCClientSessionDelegate.h in Headers */, 86D784AB1C24C39F00C7458D /* libircclient.h in Headers */, 86D784A61C24C39F00C7458D /* libirc_errors.h in Headers */, 86F2EFF91C21F81900B033A4 /* IRCClientChannel.h in Headers */, diff --git a/IRCClient/IRCClientSession.m b/IRCClient/IRCClientSession.m index 6feb8ff..0675eaa 100644 --- a/IRCClient/IRCClientSession.m +++ b/IRCClient/IRCClientSession.m @@ -743,7 +743,6 @@ static void onChannelPrvmsg(irc_session_t *session, const char *event, const cha message = [NSData dataWithBytes:params[1] length:strlen(params[1])]; } - NSLog(@"onChannelPrvmsg"); [clientSession messageSent:message toChannel:channelName byUser:nick]; } diff --git a/IRCClient/IRCClientSessionDelegate.h b/IRCClient/IRCClientSessionDelegate.h index 056032c..f68b578 100644 --- a/IRCClient/IRCClientSessionDelegate.h +++ b/IRCClient/IRCClientSessionDelegate.h @@ -99,7 +99,7 @@ * * @param channel the channel for the invitation. * @param nick the nickname of the user that sent the invitation. - */ + */ - (void)invitedToChannel:(NSData *)channelName by:(NSString *)nick; /** A private CTCP request was sent to the IRC client. diff --git a/README b/README index f01fa1f..050d877 100644 --- a/README +++ b/README @@ -8,6 +8,8 @@ ADDING IRCCLIENT TO YOUR APPLICATION (using Xcode) (these instructions apply to Xcode 7.1.1, build 7B1005) +0. Build libircclient and add it to the IRCClient project (see file “README_libircclient” for details) + 1. Place the entire IRCClient folder in your project folder 2. Using “File -> Add Files…”, add IRCClient.xcodeproj to your project diff --git a/README_libircclient b/README_libircclient new file mode 100644 index 0000000..7d0299d --- /dev/null +++ b/README_libircclient @@ -0,0 +1,18 @@ +Before you can add IRCClient to your project, you must build libircclient and add it to IRCClient. +(these instructions apply to Xcode 7.1.1, build 7B1005) + +0. Download the libircclient source + +1. Create a folder called “libircclient” in the IRCClient project folder + +2. Build libircclient, according the instructions provided + +3. Place the library (libircclient.a) and the headers (libircclient.h, libirc_errors.h, libirc_events.h, libirc_options.h, and libirc_rfcnumeric.h) into the libircclient folder you created + +4. Open IRCClient.xcodeproj in Xcode and use “File -> Add Files…” to add the libircclient folder to the project + +5. Configure the build phases for the IRCClient framework target by adding libircclient.a to the “Link Binary With Libraries” build phase + +6. Close the project + +Now you can proceed with step 1 of the instructions in the main README file. \ No newline at end of file