Skip to content

Commit

Permalink
lots of railscamp fun
Browse files Browse the repository at this point in the history
  • Loading branch information
lachie committed Jun 25, 2008
1 parent aa0e4da commit 746e60a
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 67 deletions.
10 changes: 10 additions & 0 deletions BonjourWatcher.rb
Expand Up @@ -137,11 +137,21 @@ def netServiceBrowser_didRemoveService_moreComing(nsb,service,more)
end


# olv delegate
def outlineView_isGroupItem(outlineView,item)
item.representedObject.is_a?(ServiceKind)
end

def outlineView_shouldSelectItem(outlineView,item)
!item.representedObject.is_a?(ServiceKind)
end

def outlineView_shouldCollapseItem(outline_view,item)
item.representedObject.is_a?(ServiceKind)
end

def pcOutlineView_shouldShowDisclosureTriangleForItem(outline_view,item)
item.representedObject.is_a?(ServiceKind)
end

end
97 changes: 30 additions & 67 deletions English.lproj/MainMenu.xib
Expand Up @@ -8,7 +8,7 @@
<string key="IBDocument.HIToolboxVersion">352.00</string>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
<integer value="367"/>
<integer value="484"/>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
Expand Down Expand Up @@ -830,35 +830,40 @@
</object>
<object class="NSMutableArray" key="NSTableColumns">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSTableColumn" id="9220477">
<double key="NSWidth">2.800000e+01</double>
<double key="NSMinWidth">1.600000e+01</double>
<double key="NSMaxWidth">1.000000e+03</double>
<object class="NSTableColumn" id="664053431">
<double key="NSWidth">1.540000e+02</double>
<double key="NSMinWidth">1.000000e+01</double>
<double key="NSMaxWidth">3.402823e+38</double>
<object class="NSTableHeaderCell" key="NSHeaderCell">
<int key="NSCellFlags">75628032</int>
<int key="NSCellFlags2">0</int>
<string key="NSContents"/>
<object class="NSFont" key="NSSupport" id="26">
<object class="NSFont" key="NSSupport">
<string key="NSName">LucidaGrande</string>
<double key="NSSize">1.100000e+01</double>
<int key="NSfFlags">3100</int>
</object>
<object class="NSColor" key="NSBackgroundColor">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MC4zMzMzMzI5OQA</bytes>
<int key="NSColorSpace">6</int>
<string key="NSCatalogName">System</string>
<string key="NSColorName">headerColor</string>
<object class="NSColor" key="NSColor">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MQA</bytes>
</object>
</object>
<object class="NSColor" key="NSTextColor" id="929884713">
<object class="NSColor" key="NSTextColor">
<int key="NSColorSpace">6</int>
<string key="NSCatalogName">System</string>
<string key="NSColorName">headerTextColor</string>
<reference key="NSColor" ref="574714943"/>
</object>
</object>
<object class="NSTextFieldCell" key="NSDataCell" id="338825516">
<object class="NSTextFieldCell" key="NSDataCell" id="933958747">
<int key="NSCellFlags">337772096</int>
<int key="NSCellFlags2">2048</int>
<string key="NSContents">Text Cell</string>
<object class="NSFont" key="NSSupport" id="637456802">
<object class="NSFont" key="NSSupport">
<string key="NSName">LucidaGrande</string>
<double key="NSSize">1.300000e+01</double>
<int key="NSfFlags">1044</int>
Expand All @@ -876,39 +881,6 @@
<bool key="NSIsResizeable">YES</bool>
<reference key="NSTableView" ref="1005650349"/>
</object>
<object class="NSTableColumn" id="664053431">
<double key="NSWidth">1.250000e+02</double>
<double key="NSMinWidth">1.000000e+01</double>
<double key="NSMaxWidth">3.402823e+38</double>
<object class="NSTableHeaderCell" key="NSHeaderCell">
<int key="NSCellFlags">75628032</int>
<int key="NSCellFlags2">0</int>
<string key="NSContents"/>
<reference key="NSSupport" ref="26"/>
<object class="NSColor" key="NSBackgroundColor">
<int key="NSColorSpace">6</int>
<string key="NSCatalogName">System</string>
<string key="NSColorName">headerColor</string>
<object class="NSColor" key="NSColor">
<int key="NSColorSpace">3</int>
<bytes key="NSWhite">MQA</bytes>
</object>
</object>
<reference key="NSTextColor" ref="929884713"/>
</object>
<object class="NSTextFieldCell" key="NSDataCell" id="933958747">
<int key="NSCellFlags">337772096</int>
<int key="NSCellFlags2">2048</int>
<string key="NSContents">Text Cell</string>
<reference key="NSSupport" ref="637456802"/>
<reference key="NSControlView" ref="1005650349"/>
<reference key="NSBackgroundColor" ref="449539636"/>
<reference key="NSTextColor" ref="965034473"/>
</object>
<int key="NSResizingMask">1</int>
<bool key="NSIsResizeable">YES</bool>
<reference key="NSTableView" ref="1005650349"/>
</object>
</object>
<double key="NSIntercellSpacingWidth">3.000000e+00</double>
<object class="NSColor" key="NSBackgroundColor">
Expand Down Expand Up @@ -2106,7 +2078,6 @@
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="664053431"/>
<reference ref="9220477"/>
</object>
<reference key="parent" ref="1051005359"/>
</object>
Expand All @@ -2129,20 +2100,6 @@
</object>
<reference key="parent" ref="1005650349"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">486</int>
<reference key="object" ref="9220477"/>
<object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="338825516"/>
</object>
<reference key="parent" ref="1005650349"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">489</int>
<reference key="object" ref="338825516"/>
<reference key="parent" ref="9220477"/>
</object>
<object class="IBObjectRecord">
<int key="objectID">491</int>
<reference key="object" ref="933958747"/>
Expand Down Expand Up @@ -2317,9 +2274,8 @@
<string>481.IBPluginDependency</string>
<string>482.IBPluginDependency</string>
<string>483.IBPluginDependency</string>
<string>484.CustomClassName</string>
<string>484.IBPluginDependency</string>
<string>486.IBPluginDependency</string>
<string>489.IBPluginDependency</string>
<string>492.IBPluginDependency</string>
<string>5.IBPluginDependency</string>
<string>5.ImportedFromIB2</string>
Expand Down Expand Up @@ -2495,18 +2451,18 @@
<reference ref="9"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<reference ref="9"/>
<string>{{344, 218}, {641, 291}}</string>
<string>{{395, 177}, {641, 291}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<integer value="0"/>
<string>{{344, 218}, {641, 291}}</string>
<integer value="0" id="8"/>
<string>{{395, 177}, {641, 291}}</string>
<reference ref="9"/>
<string>{{437, 175}, {352, 291}}</string>
<reference ref="9"/>
<string>{3.40282e+38, 3.40282e+38}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<integer value="0" id="8"/>
<reference ref="8"/>
<reference ref="574714943"/>
<reference ref="8"/>
<reference ref="8"/>
Expand All @@ -2516,8 +2472,7 @@
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>SourceOutlineView</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
Expand Down Expand Up @@ -2618,6 +2573,14 @@
<string key="minorKey"/>
</object>
</object>
<object class="IBPartialClassDescription">
<string key="className">SourceOutlineView</string>
<string key="superclassName">NSOutlineView</string>
<object class="IBClassDescriptionSource" key="sourceIdentifier">
<string key="majorKey">IBProjectSource</string>
<string key="minorKey">SourceOutlineView.h</string>
</object>
</object>
</object>
</object>
<int key="IBDocument.localizationMode">0</int>
Expand Down
8 changes: 8 additions & 0 deletions starjour.xcodeproj/project.pbxproj
Expand Up @@ -10,6 +10,8 @@
080DA5440E0CD5E5009AFF17 /* AppJour.xib in Resources */ = {isa = PBXBuildFile; fileRef = 080DA5430E0CD5E5009AFF17 /* AppJour.xib */; };
080DA55C0E0CDE29009AFF17 /* GitJour.xib in Resources */ = {isa = PBXBuildFile; fileRef = 080DA55B0E0CDE29009AFF17 /* GitJour.xib */; };
080DA55E0E0CDE32009AFF17 /* GemJour.xib in Resources */ = {isa = PBXBuildFile; fileRef = 080DA55D0E0CDE32009AFF17 /* GemJour.xib */; };
080DA5980E0FB94F009AFF17 /* SourceOutlineView.h in Headers */ = {isa = PBXBuildFile; fileRef = 080DA5960E0FB94F009AFF17 /* SourceOutlineView.h */; };

This comment has been minimized.

Copy link
@dustin

dustin Jul 3, 2008

SourceOutlineView seems to be missing from the tree.

This comment has been minimized.

Copy link
@seigel

seigel Jul 3, 2008

In my “fork” I removed it from the project.

This comment has been minimized.

Copy link
@lachie

lachie Jul 3, 2008

Author Owner

yeah sorry, I’ll merge it asap!

080DA5990E0FB94F009AFF17 /* SourceOutlineView.m in Sources */ = {isa = PBXBuildFile; fileRef = 080DA5970E0FB94F009AFF17 /* SourceOutlineView.m */; };
083C8C080E0C750C00E2D5AD /* Jour.rb in Resources */ = {isa = PBXBuildFile; fileRef = 083C8C070E0C750C00E2D5AD /* Jour.rb */; };
083C8C0A0E0C751C00E2D5AD /* GitJour.rb in Resources */ = {isa = PBXBuildFile; fileRef = 083C8C090E0C751C00E2D5AD /* GitJour.rb */; };
083C8C0C0E0C756000E2D5AD /* AppJour.rb in Resources */ = {isa = PBXBuildFile; fileRef = 083C8C0B0E0C756000E2D5AD /* AppJour.rb */; };
Expand Down Expand Up @@ -37,6 +39,8 @@
080DA5430E0CD5E5009AFF17 /* AppJour.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = AppJour.xib; sourceTree = "<group>"; };
080DA55B0E0CDE29009AFF17 /* GitJour.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = GitJour.xib; sourceTree = "<group>"; };
080DA55D0E0CDE32009AFF17 /* GemJour.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = GemJour.xib; sourceTree = "<group>"; };
080DA5960E0FB94F009AFF17 /* SourceOutlineView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SourceOutlineView.h; sourceTree = "<group>"; };
080DA5970E0FB94F009AFF17 /* SourceOutlineView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SourceOutlineView.m; sourceTree = "<group>"; };
083C8C070E0C750C00E2D5AD /* Jour.rb */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.ruby; path = Jour.rb; sourceTree = "<group>"; };
083C8C090E0C751C00E2D5AD /* GitJour.rb */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.ruby; path = GitJour.rb; sourceTree = "<group>"; };
083C8C0B0E0C756000E2D5AD /* AppJour.rb */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.ruby; path = AppJour.rb; sourceTree = "<group>"; };
Expand Down Expand Up @@ -91,6 +95,8 @@
083C8C0D0E0C766800E2D5AD /* GemJour.rb */,
083C8C0F0E0C767B00E2D5AD /* PasteJour.rb */,
083C8C6B0E0C882300E2D5AD /* ServiceKind.rb */,
080DA5960E0FB94F009AFF17 /* SourceOutlineView.h */,
080DA5970E0FB94F009AFF17 /* SourceOutlineView.m */,
);
name = Classes;
sourceTree = "<group>";
Expand Down Expand Up @@ -175,6 +181,7 @@
isa = PBXHeadersBuildPhase;
buildActionMask = 2147483647;
files = (
080DA5980E0FB94F009AFF17 /* SourceOutlineView.h in Headers */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -254,6 +261,7 @@
buildActionMask = 2147483647;
files = (
4DDCA70A0ACC9A6100E082CE /* main.m in Sources */,
080DA5990E0FB94F009AFF17 /* SourceOutlineView.m in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down

0 comments on commit 746e60a

Please sign in to comment.