Permalink
Browse files

JRLog: Move to formal protocol for JRLogDestinationDO so I can use on…

…eway and bycopy type qualifiers. Thanks to Dave Dribin for pointing this out.
  • Loading branch information...
1 parent bda0e30 commit 053679d2e9b46339e5893a475d73ac29a652dc19 @rentzsch committed Jan 7, 2007
Showing with 38 additions and 441 deletions.
  1. +5 −6 JRLog.m
  2. +18 −178 Saw/Saw.xcodeproj/wolf.mode1
  3. +9 −254 Saw/Saw.xcodeproj/wolf.pbxuser
  4. +6 −3 Saw/Saw_AppDelegate.m
View
11 JRLog.m
@@ -25,14 +25,14 @@
//
//
-@interface NSObject (JRLogDestinationDO)
-- (void)logWithDictionary:(NSDictionary*)dictionary_;
+@protocol JRLogDestinationDO
+- (oneway void)logWithDictionary:(bycopy NSDictionary*)dictionary_;
@end
@interface JRLogOutput : NSObject {
- NSString *sessionUUID;
- BOOL tryDO;
- id destination;
+ NSString *sessionUUID;
+ BOOL tryDO;
+ id<JRLogDestinationDO> destination;
}
+ (id)sharedOutput;
@end
@@ -88,7 +88,6 @@ - (void)logWithLevel:(JRLogLevel)callerLevel_
nil]];
NS_HANDLER
if ([[localException name] isEqualToString:NSObjectInaccessibleException]) {
- [destination release];
destination = nil;
} else {
[localException raise];
@@ -185,168 +185,7 @@
<key>Notifications</key>
<array/>
<key>OpenEditors</key>
- <array>
- <dict>
- <key>Content</key>
- <dict>
- <key>PBXProjectModuleGUID</key>
- <string>79014E080B4E40190001C1C2</string>
- <key>PBXProjectModuleLabel</key>
- <string>CoreData+JRExtensions.m</string>
- <key>PBXSplitModuleInNavigatorKey</key>
- <dict>
- <key>Split0</key>
- <dict>
- <key>PBXProjectModuleGUID</key>
- <string>79014E090B4E40190001C1C2</string>
- <key>PBXProjectModuleLabel</key>
- <string>CoreData+JRExtensions.m</string>
- <key>_historyCapacity</key>
- <integer>0</integer>
- <key>bookmark</key>
- <string>79014E0B0B4E40190001C1C2</string>
- <key>history</key>
- <array>
- <string>79014E0A0B4E40190001C1C2</string>
- </array>
- </dict>
- <key>SplitCount</key>
- <string>1</string>
- </dict>
- <key>StatusBarVisibility</key>
- <true/>
- </dict>
- <key>Geometry</key>
- <dict>
- <key>Frame</key>
- <string>{{0, 20}, {953, 668}}</string>
- <key>PBXModuleWindowStatusBarHidden2</key>
- <false/>
- <key>RubberWindowFrame</key>
- <string>107 256 953 709 0 0 2560 1578 </string>
- </dict>
- </dict>
- <dict>
- <key>Content</key>
- <dict>
- <key>PBXProjectModuleGUID</key>
- <string>79014E0C0B4E40190001C1C2</string>
- <key>PBXProjectModuleLabel</key>
- <string>SourceMO.m</string>
- <key>PBXSplitModuleInNavigatorKey</key>
- <dict>
- <key>Split0</key>
- <dict>
- <key>PBXProjectModuleGUID</key>
- <string>79014E0D0B4E40190001C1C2</string>
- <key>PBXProjectModuleLabel</key>
- <string>SourceMO.m</string>
- <key>_historyCapacity</key>
- <integer>0</integer>
- <key>bookmark</key>
- <string>79014E100B4E40190001C1C2</string>
- <key>history</key>
- <array>
- <string>79014E0E0B4E40190001C1C2</string>
- </array>
- </dict>
- <key>SplitCount</key>
- <string>1</string>
- </dict>
- <key>StatusBarVisibility</key>
- <true/>
- </dict>
- <key>Geometry</key>
- <dict>
- <key>Frame</key>
- <string>{{0, 20}, {953, 668}}</string>
- <key>PBXModuleWindowStatusBarHidden2</key>
- <false/>
- <key>RubberWindowFrame</key>
- <string>84 276 953 709 0 0 2560 1578 </string>
- </dict>
- </dict>
- <dict>
- <key>Content</key>
- <dict>
- <key>PBXProjectModuleGUID</key>
- <string>79014E120B4E40190001C1C2</string>
- <key>PBXProjectModuleLabel</key>
- <string>include.m</string>
- <key>PBXSplitModuleInNavigatorKey</key>
- <dict>
- <key>Split0</key>
- <dict>
- <key>PBXProjectModuleGUID</key>
- <string>79014E130B4E40190001C1C2</string>
- <key>PBXProjectModuleLabel</key>
- <string>include.m</string>
- <key>_historyCapacity</key>
- <integer>0</integer>
- <key>bookmark</key>
- <string>79014E140B4E40190001C1C2</string>
- <key>history</key>
- <array>
- <string>79014E010B4E26EC0001C1C2</string>
- </array>
- </dict>
- <key>SplitCount</key>
- <string>1</string>
- </dict>
- <key>StatusBarVisibility</key>
- <true/>
- </dict>
- <key>Geometry</key>
- <dict>
- <key>Frame</key>
- <string>{{0, 20}, {953, 668}}</string>
- <key>PBXModuleWindowStatusBarHidden2</key>
- <false/>
- <key>RubberWindowFrame</key>
- <string>61 295 953 709 0 0 2560 1578 </string>
- </dict>
- </dict>
- <dict>
- <key>Content</key>
- <dict>
- <key>PBXProjectModuleGUID</key>
- <string>79014E150B4E40190001C1C2</string>
- <key>PBXProjectModuleLabel</key>
- <string>Saw_DataModel.xcdatamodel</string>
- <key>PBXSplitModuleInNavigatorKey</key>
- <dict>
- <key>Split0</key>
- <dict>
- <key>PBXProjectModuleGUID</key>
- <string>79014E160B4E40190001C1C2</string>
- <key>PBXProjectModuleLabel</key>
- <string>Saw_DataModel.xcdatamodel</string>
- <key>_historyCapacity</key>
- <integer>0</integer>
- <key>bookmark</key>
- <string>79014E170B4E40190001C1C2</string>
- <key>history</key>
- <array>
- <string>79014E000B4E26A30001C1C2</string>
- </array>
- </dict>
- <key>SplitCount</key>
- <string>1</string>
- </dict>
- <key>StatusBarVisibility</key>
- <true/>
- </dict>
- <key>Geometry</key>
- <dict>
- <key>Frame</key>
- <string>{{0, 20}, {953, 668}}</string>
- <key>PBXModuleWindowStatusBarHidden2</key>
- <false/>
- <key>RubberWindowFrame</key>
- <string>443 304 953 709 0 0 2560 1578 </string>
- </dict>
- </dict>
- </array>
+ <array/>
<key>PerspectiveWidths</key>
<array>
<integer>-1</integer>
@@ -379,6 +218,8 @@
<key>Layout</key>
<array>
<dict>
+ <key>BecomeActive</key>
+ <true/>
<key>ContentConfiguration</key>
<dict>
<key>PBXBottomSmartGroupGIDs</key>
@@ -422,8 +263,8 @@
<key>PBXSmartGroupTreeModuleOutlineStateSelectionKey</key>
<array>
<array>
- <integer>3</integer>
- <integer>1</integer>
+ <integer>8</integer>
+ <integer>4</integer>
<integer>0</integer>
</array>
</array>
@@ -447,7 +288,7 @@
<real>186</real>
</array>
<key>RubberWindowFrame</key>
- <string>92 437 690 397 0 0 2560 1578 </string>
+ <string>49 243 690 397 0 0 1680 1028 </string>
</dict>
<key>Module</key>
<string>PBXSmartGroupTreeModule</string>
@@ -484,7 +325,7 @@
<key>Frame</key>
<string>{{0, 0}, {482, 0}}</string>
<key>RubberWindowFrame</key>
- <string>92 437 690 397 0 0 2560 1578 </string>
+ <string>49 243 690 397 0 0 1680 1028 </string>
</dict>
<key>Module</key>
<string>PBXNavigatorGroup</string>
@@ -504,7 +345,7 @@
<key>Frame</key>
<string>{{0, 5}, {482, 351}}</string>
<key>RubberWindowFrame</key>
- <string>92 437 690 397 0 0 2560 1578 </string>
+ <string>49 243 690 397 0 0 1680 1028 </string>
</dict>
<key>Module</key>
<string>XCDetailModule</string>
@@ -528,9 +369,9 @@
</array>
<key>TableOfContents</key>
<array>
- <string>79014E060B4E40190001C1C2</string>
+ <string>79874A790B507EA600AEDF1A</string>
<string>1CE0B1FE06471DED0097A5F4</string>
- <string>79014E070B4E40190001C1C2</string>
+ <string>79874A7A0B507EA600AEDF1A</string>
<string>1CE0B20306471E060097A5F4</string>
<string>1CE0B20506471E060097A5F4</string>
</array>
@@ -664,14 +505,11 @@
<integer>5</integer>
<key>WindowOrderList</key>
<array>
- <string>79014E150B4E40190001C1C2</string>
- <string>79014E120B4E40190001C1C2</string>
- <string>79014E0C0B4E40190001C1C2</string>
- <string>79014E080B4E40190001C1C2</string>
+ <string>79A57E330B4BB7C700E50393</string>
<string>/Users/wolf/code/sf/redshed/cocoa/JRLog/Saw/Saw.xcodeproj</string>
</array>
<key>WindowString</key>
- <string>92 437 690 397 0 0 2560 1578 </string>
+ <string>49 243 690 397 0 0 1680 1028 </string>
<key>WindowTools</key>
<array>
<dict>
@@ -701,14 +539,16 @@
<key>Frame</key>
<string>{{0, 0}, {500, 218}}</string>
<key>RubberWindowFrame</key>
- <string>49 157 500 500 0 0 1024 746 </string>
+ <string>110 321 500 500 0 0 1680 1028 </string>
</dict>
<key>Module</key>
<string>PBXNavigatorGroup</string>
<key>Proportion</key>
<string>218pt</string>
</dict>
<dict>
+ <key>BecomeActive</key>
+ <true/>
<key>ContentConfiguration</key>
<dict>
<key>PBXProjectModuleGUID</key>
@@ -725,7 +565,7 @@
<key>Frame</key>
<string>{{0, 223}, {500, 236}}</string>
<key>RubberWindowFrame</key>
- <string>49 157 500 500 0 0 1024 746 </string>
+ <string>110 321 500 500 0 0 1680 1028 </string>
</dict>
<key>Module</key>
<string>PBXBuildResultsModule</string>
@@ -748,14 +588,14 @@
<key>TableOfContents</key>
<array>
<string>79A57E330B4BB7C700E50393</string>
- <string>79014DE90B4E19520001C1C2</string>
+ <string>79874A740B507E9200AEDF1A</string>
<string>1CD0528F0623707200166675</string>
<string>XCMainBuildResultsModuleGUID</string>
</array>
<key>ToolbarConfiguration</key>
<string>xcode.toolbar.config.build</string>
<key>WindowString</key>
- <string>49 157 500 500 0 0 1024 746 </string>
+ <string>110 321 500 500 0 0 1680 1028 </string>
<key>WindowToolGUID</key>
<string>79A57E330B4BB7C700E50393</string>
<key>WindowToolIsVisible</key>
Oops, something went wrong.

0 comments on commit 053679d

Please sign in to comment.