Changeset 1654
- Timestamp:
- 02/04/05 22:41:44 (4 years ago)
- Files:
-
- WiredClient/trunk/English.lproj/PrivateChat.nib/classes.nib (modified) (1 diff)
- WiredClient/trunk/English.lproj/PrivateChat.nib/info.nib (modified) (2 diffs)
- WiredClient/trunk/English.lproj/PrivateChat.nib/keyedobjects.nib (modified) (previous)
- WiredClient/trunk/English.lproj/PrivateChat.nib/objects.nib (modified) (previous)
- WiredClient/trunk/English.lproj/PublicChat.nib/classes.nib (modified) (1 diff)
- WiredClient/trunk/English.lproj/PublicChat.nib/info.nib (modified) (2 diffs)
- WiredClient/trunk/English.lproj/PublicChat.nib/keyedobjects.nib (modified) (previous)
- WiredClient/trunk/English.lproj/PublicChat.nib/objects.nib (modified) (previous)
- WiredClient/trunk/WCAccounts.h (modified) (1 diff)
- WiredClient/trunk/WCAccounts.m (modified) (1 diff)
- WiredClient/trunk/WCChat.h (modified) (1 diff)
- WiredClient/trunk/WCChat.m (modified) (2 diffs)
- WiredClient/trunk/WiredClient.xcode/project.pbxproj (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
WiredClient/trunk/English.lproj/PrivateChat.nib/classes.nib
r1616 r1654 5 5 { 6 6 ACTIONS = { 7 editAccount = id; 7 8 getInfo = id; 8 9 ignore = id; WiredClient/trunk/English.lproj/PrivateChat.nib/info.nib
r1616 r1654 4 4 <dict> 5 5 <key>IBDocumentLocation</key> 6 <string> 514 104403 412 0 0 1280 1002 </string>6 <string>309 195 403 412 0 0 1280 1002 </string> 7 7 <key>IBEditorPositions</key> 8 8 <dict> 9 9 <key>196</key> 10 <string> 861 317 184 990 0 1280 1002 </string>10 <string>679 291 184 118 0 0 1280 1002 </string> 11 11 </dict> 12 12 <key>IBFramework Version</key> … … 18 18 <key>IBOpenObjects</key> 19 19 <array> 20 <integer>196</integer> 20 21 <integer>139</integer> 21 <integer>196</integer>22 22 </array> 23 23 <key>IBSystem Version</key> WiredClient/trunk/English.lproj/PublicChat.nib/classes.nib
r1616 r1654 11 11 { 12 12 ACTIONS = { 13 editAccount = id; 13 14 getInfo = id; 14 15 ignore = id; WiredClient/trunk/English.lproj/PublicChat.nib/info.nib
r1616 r1654 8 8 <dict> 9 9 <key>105</key> 10 <string> 831 131 184 168 0 0 1280 1002 </string>10 <string>736 221 184 168 0 0 1280 1002 </string> 11 11 </dict> 12 12 <key>IBFramework Version</key> … … 18 18 <key>IBOpenObjects</key> 19 19 <array> 20 <integer>105</integer> 20 21 <integer>10</integer> 21 <integer>105</integer>22 22 </array> 23 23 <key>IBSystem Version</key> WiredClient/trunk/WCAccounts.h
r1616 r1654 64 64 - (NSArray *) users; 65 65 - (NSArray *) groups; 66 - (WCAccount *) userWithName:(NSString *)name; 67 - (WCAccount *) groupWithName:(NSString *)name; 66 68 67 69 - (IBAction) add:(id)sender; WiredClient/trunk/WCAccounts.m
r1616 r1654 386 386 387 387 388 - (WCAccount *)userWithName:(NSString *)name { 389 NSEnumerator *enumerator; 390 WCAccount *account; 391 392 enumerator = [[self accounts] objectEnumerator]; 393 394 while((account = [enumerator nextObject])) { 395 if([account type] == WCAccountTypeUser && [[account name] isEqualToString:name]) 396 return account; 397 } 398 399 return NULL; 400 } 401 402 403 404 - (WCAccount *)groupWithName:(NSString *)name { 405 NSEnumerator *enumerator; 406 WCAccount *account; 407 408 enumerator = [[self accounts] objectEnumerator]; 409 410 while((account = [enumerator nextObject])) { 411 if([account type] == WCAccountTypeGroup && [[account name] isEqualToString:name]) 412 return account; 413 } 414 415 return NULL; 416 } 417 418 419 388 420 #pragma mark - 389 421 WiredClient/trunk/WCChat.h
r1616 r1654 107 107 - (IBAction) sendPrivateMessage:(id)sender; 108 108 - (IBAction) getInfo:(id)sender; 109 - (IBAction) editAccount:(id)sender; 109 110 - (IBAction) ignore:(id)sender; 110 111 - (IBAction) unignore:(id)sender; WiredClient/trunk/WCChat.m
r1653 r1654 27 27 */ 28 28 29 #import "WCAccount.h" 29 #import "WCAccount.h" 30 #import "WCAccountEditor.h" 31 #import "WCAccounts.h" 30 32 #import "WCChat.h" 31 33 #import "WCMain.h" … … 1453 1455 1454 1456 1457 - (IBAction)editAccount:(id)sender { 1458 WCAccount *account; 1459 WCUser *user; 1460 1461 user = [self selectedUser]; 1462 account = [[[self connection] accounts] userWithName:[user login]]; 1463 1464 [[WCAccountEditor alloc] initWithConnection:[self connection] edit:account]; 1465 } 1466 1467 1468 1455 1469 - (IBAction)ignore:(id)sender { 1456 1470 NSDictionary *ignore; WiredClient/trunk/WiredClient.xcode/project.pbxproj
r1626 r1654 239 239 A5C4783E07AACFAE00F87F7A, 240 240 A5C4783F07AACFAE00F87F7A, 241 A5DCFA5307B41DE300B32D3A, 241 242 ); 242 243 isa = PBXGroup; … … 3080 3081 }; 3081 3082 }; 3083 A5DCFA5307B41DE300B32D3A = { 3084 fileType = wrapper.application; 3085 isa = PBXReferenceProxy; 3086 path = "ZANotificationCenter Test.app"; 3087 refType = 3; 3088 remoteRef = A5DCFA5907B41DEA00B32D3A; 3089 sourceTree = BUILT_PRODUCTS_DIR; 3090 }; 3091 A5DCFA5907B41DEA00B32D3A = { 3092 containerPortal = A544C1B90758E0E9008446CF; 3093 isa = PBXContainerItemProxy; 3094 proxyType = 2; 3095 remoteGlobalIDString = A553B5E007AAF56E005EE3E5; 3096 remoteInfo = "ZANotificationCenter Test"; 3097 }; 3082 3098 A5E225A0057AB5290037C7F9 = { 3083 3099 isa = PBXFileReference;
