<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -8,8 +8,8 @@
 		&lt;string key=&quot;IBDocument.HIToolboxVersion&quot;&gt;353.00&lt;/string&gt;
 		&lt;object class=&quot;NSMutableArray&quot; key=&quot;IBDocument.EditedObjectIDs&quot;&gt;
 			&lt;bool key=&quot;EncodedWithXMLCoder&quot;&gt;YES&lt;/bool&gt;
+			&lt;integer value=&quot;372&quot;/&gt;
 			&lt;integer value=&quot;29&quot;/&gt;
-			&lt;integer value=&quot;371&quot;/&gt;
 		&lt;/object&gt;
 		&lt;object class=&quot;NSArray&quot; key=&quot;IBDocument.PluginDependencies&quot;&gt;
 			&lt;bool key=&quot;EncodedWithXMLCoder&quot;&gt;YES&lt;/bool&gt;
@@ -948,7 +948,7 @@
 								&lt;int key=&quot;NSButtonFlags&quot;&gt;-2038284033&lt;/int&gt;
 								&lt;int key=&quot;NSButtonFlags2&quot;&gt;129&lt;/int&gt;
 								&lt;string key=&quot;NSAlternateContents&quot;/&gt;
-								&lt;string key=&quot;NSKeyEquivalent&quot;/&gt;
+								&lt;string type=&quot;base64-UTF8&quot; key=&quot;NSKeyEquivalent&quot;&gt;DQ&lt;/string&gt;
 								&lt;int key=&quot;NSPeriodicDelay&quot;&gt;200&lt;/int&gt;
 								&lt;int key=&quot;NSPeriodicInterval&quot;&gt;25&lt;/int&gt;
 							&lt;/object&gt;
@@ -2489,6 +2489,13 @@
 			&lt;object class=&quot;NSMutableArray&quot; key=&quot;referencedPartialClassDescriptions&quot;&gt;
 				&lt;bool key=&quot;EncodedWithXMLCoder&quot;&gt;YES&lt;/bool&gt;
 				&lt;object class=&quot;IBPartialClassDescription&quot;&gt;
+					&lt;string key=&quot;className&quot;&gt;NSObject&lt;/string&gt;
+					&lt;object class=&quot;IBClassDescriptionSource&quot; key=&quot;sourceIdentifier&quot;&gt;
+						&lt;string key=&quot;majorKey&quot;&gt;IBProjectSource&lt;/string&gt;
+						&lt;string key=&quot;minorKey&quot;&gt;NSObject+Inspect.h&lt;/string&gt;
+					&lt;/object&gt;
+				&lt;/object&gt;
+				&lt;object class=&quot;IBPartialClassDescription&quot;&gt;
 					&lt;string key=&quot;className&quot;&gt;NuSController&lt;/string&gt;
 					&lt;string key=&quot;superclassName&quot;&gt;NSObject&lt;/string&gt;
 					&lt;object class=&quot;NSMutableDictionary&quot; key=&quot;actions&quot;&gt;</diff>
      <filename>English.lproj/MainMenu.nib/designable.nib</filename>
    </modified>
    <modified>
      <diff></diff>
      <filename>English.lproj/MainMenu.nib/keyedobjects.nib</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,4 @@
+# Taken from nu-anywhere in Nu's source
 (unless $console ;; guard against multiple injection        
         (load &quot;console&quot;)     
         (set $console ((NuConsoleWindowController alloc) init))
@@ -5,6 +6,9 @@
             (($console window) setTitle:&quot;Nu Console (#{appName})&quot;))
         ($console toggleConsole:0))
 
+# The following has been added for NuSomewhere to extend the console by adding some extra functions
+
+# Attempt to get the label for a particular object in the parser's context
 (function NuInspect_LabelForObject (obj)
 	(set d (_parser context))
 	(set label nil)
@@ -16,14 +20,29 @@
 
 	(label stringValue))
 
+# A function to be called in the console.  `inspect` opens the inspection window and adds the object passed to
+# the list of watched objects
 (function inspect (*arguments)
 	(if (&gt; (*args count) 1) 
 		(_parser setValue:(eval (*args first)) forKey:(*args second)) # We've defined a label, put it into the context
 		((NuInspect sharedInstance) inspectObject:(eval (*args first)) label:(*args second))
 	(else
-		((NuInspect sharedInstance) inspectObject:obj label:(NuInspect_LabelForObject obj)) )))
+		((NuInspect sharedInstance) inspectObject:(*arguments first) label:(NuInspect_LabelForObject (*arguments first))) )))
+
+# A function to be called in the console.  This attaches a nu file to an application (by adding it to the user defaults)
+# that will then be run whenever NuSomewhere is injected into an application.
+(function attach (nufile)
+	((NSUserDefaults standardUserDefaults) setObject:nufile forKey:&quot;NuInspect_AttachedFile&quot;) )
 
+# Deletes the user default set by attach.  Also called in the console.
+(function detach () ((NSUserDefaults standardUserDefaults) removeObjectForKey:&quot;NuInspect_AttachedFile&quot;) )
+
+# A small extension to NuInspect that writes to the console.
 (class NuInspect
 	(- (void) writeToConsole:(id)str is 
 		(set ts ((($console valueForKey:&quot;console&quot;) valueForKey:&quot;textview&quot;) textStorage))
 		(ts replaceCharactersInRange:(list (ts length) 0) withString:str)))
+
+# Perform setup based on if any files are attached using `attach`
+(set tmp ((NSUserDefaults standardUserDefaults) objectForKey:&quot;NuInspect_AttachedFile&quot;))
+(if (!= tmp nil) (load tmp))
\ No newline at end of file</diff>
      <filename>inspect.nu</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>087869d96ffe24d0148b7b9d455a09320ed139d4</id>
    </parent>
  </parents>
  <author>
    <name>Grayson Hansard</name>
    <email>info@fromconcentratesoftware.com</email>
  </author>
  <url>http://github.com/Grayson/nusomewhere/commit/68bf3e2ea110a51db46d08875872c02fb3843d6c</url>
  <id>68bf3e2ea110a51db46d08875872c02fb3843d6c</id>
  <committed-date>2009-04-24T11:01:15-07:00</committed-date>
  <authored-date>2009-04-24T11:01:15-07:00</authored-date>
  <message>Fixes a bug in inspecting objects.  Also adds  and  commands to the console.</message>
  <tree>24cf9bafeba2b5d2d7c4800e662fb357dd75ae95</tree>
  <committer>
    <name>Grayson Hansard</name>
    <email>info@fromconcentratesoftware.com</email>
  </committer>
</commit>
