Commits

Elvis Cheng committed c9fcf6e

Add clear button

  • Participants
  • Parent commits bb90d73

Comments (0)

Files changed (5)

 
 GPIB_a34401/a34401.xcodeproj/project.xcworkspace/xcuserdata/lirichard.xcuserdatad/UserInterfaceState.xcuserstate
+
+GPIB_a34401/a34401.xcodeproj/project.xcworkspace/xcuserdata/iacmaysw.xcuserdatad/UserInterfaceState.xcuserstate
+
+GPIB_a34401/a34401.xcodeproj/xcuserdata/iacmaysw.xcuserdatad/xcdebugger/Breakpoints.xcbkptlist
+
+GPIB_a34401/a34401.xcodeproj/xcuserdata/iacmaysw.xcuserdatad/xcschemes/a34401.xcscheme
+
+GPIB_a34401/a34401.xcodeproj/xcuserdata/iacmaysw.xcuserdatad/xcschemes/cur_34401.xcscheme
+
+GPIB_a34401/a34401.xcodeproj/xcuserdata/iacmaysw.xcuserdatad/xcschemes/res_34401.xcscheme
+
+GPIB_a34401/a34401.xcodeproj/xcuserdata/iacmaysw.xcuserdatad/xcschemes/vol_34401.xcscheme
+
+GPIB_a34401/a34401.xcodeproj/xcuserdata/iacmaysw.xcuserdatad/xcschemes/xcschememanagement.plist

File GPIB_a34401/a34401.xcodeproj/project.pbxproj

 		6CBB87ED15DDE25F00096DA2 /* Debug */ = {
 			isa = XCBuildConfiguration;
 			buildSettings = {
+				ARCHS = "$(ARCHS_STANDARD_32_BIT)";
 				COMBINE_HIDPI_IMAGES = YES;
 				FRAMEWORK_SEARCH_PATHS = (
 					"$(inherited)",
 				GCC_PREFIX_HEADER = "a34401/a34401-Prefix.pch";
 				INFOPLIST_FILE = "a34401/a34401-Info.plist";
 				MACOSX_DEPLOYMENT_TARGET = 10.7;
+				OTHER_CFLAGS = "";
 				PRODUCT_NAME = "$(TARGET_NAME)";
 				SDKROOT = macosx;
 				WRAPPER_EXTENSION = app;
 		6CBB87EE15DDE25F00096DA2 /* Release */ = {
 			isa = XCBuildConfiguration;
 			buildSettings = {
+				ARCHS = "$(ARCHS_STANDARD_32_BIT)";
 				COMBINE_HIDPI_IMAGES = YES;
 				FRAMEWORK_SEARCH_PATHS = (
 					"$(inherited)",
 				GCC_PREFIX_HEADER = "a34401/a34401-Prefix.pch";
 				INFOPLIST_FILE = "a34401/a34401-Info.plist";
 				MACOSX_DEPLOYMENT_TARGET = 10.7;
+				OTHER_CFLAGS = "";
 				PRODUCT_NAME = "$(TARGET_NAME)";
 				SDKROOT = macosx;
 				WRAPPER_EXTENSION = app;
 				EFA6DBBA15E66C2100605A93 /* Release */,
 			);
 			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Debug;
 		};
 		EFA6DBCA15E66C9100605A93 /* Build configuration list for PBXNativeTarget "res_34401" */ = {
 			isa = XCConfigurationList;
 				EFA6DBCC15E66C9100605A93 /* Release */,
 			);
 			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Debug;
 		};
 		EFA6DBDC15E66CD600605A93 /* Build configuration list for PBXNativeTarget "vol_34401" */ = {
 			isa = XCConfigurationList;
 				EFA6DBDE15E66CD600605A93 /* Release */,
 			);
 			defaultConfigurationIsVisible = 0;
+			defaultConfigurationName = Debug;
 		};
 /* End XCConfigurationList section */
 	};

File GPIB_a34401/a34401/a34401.h

 -(IBAction) Vol:(id)sender;
 -(IBAction) Cur:(id)sender;
 -(IBAction) Res:(id)sender;
+-(IBAction) clr:(id)sender;
 -(void) GpibError:(char *)msg;
 @end

File GPIB_a34401/a34401/a34401.m

 
 -(IBAction) Vol:(id)sender
 {
+    //[result setStringValue:@""];
     char  Buffer[101];             /* Read buffer                             */
     [result setStringValue:@""];
     /*****************************************************************************
 }
 -(IBAction) Cur:(id)sender
 {
+    //[result setStringValue:@""];
     char  Buffer[101];             /* Read buffer                             */
     [result setStringValue:@""];
     /*****************************************************************************
 }
 -(IBAction) Res:(id)sender
 {
+    //[result setStringValue:@""];
     char  Buffer[101];             /* Read buffer                             */
     [result setStringValue:@""];
     /*****************************************************************************
     }
     
 }
+
+-(IBAction) clr:(id)sender
+{
+    [result setStringValue:@""];
+}
+
 -(void) GpibError:(char *)msg
 {
     [result_str setString:[NSString stringWithFormat:@"%@%s\nibsta = 0x%x  <\n",result_str, msg, ibsta]];

File GPIB_a34401/a34401/en.lproj/MainMenu.xib

 <?xml version="1.0" encoding="UTF-8"?>
 <archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="8.00">
 	<data>
-		<int key="IBDocument.SystemTarget">1070</int>
-		<string key="IBDocument.SystemVersion">11E53</string>
-		<string key="IBDocument.InterfaceBuilderVersion">2549</string>
-		<string key="IBDocument.AppKitVersion">1138.47</string>
-		<string key="IBDocument.HIToolboxVersion">569.00</string>
+		<int key="IBDocument.SystemTarget">1080</int>
+		<string key="IBDocument.SystemVersion">12A269</string>
+		<string key="IBDocument.InterfaceBuilderVersion">2809</string>
+		<string key="IBDocument.AppKitVersion">1187</string>
+		<string key="IBDocument.HIToolboxVersion">624.00</string>
 		<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
 			<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
-			<string key="NS.object.0">2549</string>
+			<string key="NS.object.0">2809</string>
 		</object>
 		<array key="IBDocument.IntegratedClassDependencies">
 			<string>IBNSLayoutConstraint</string>
 								<int key="NSPeriodicDelay">200</int>
 								<int key="NSPeriodicInterval">25</int>
 							</object>
+							<bool key="NSAllowsLogicalLayoutDirection">NO</bool>
 						</object>
 						<object class="NSButton" id="164244135">
 							<reference key="NSNextResponder" ref="439893737"/>
 								<int key="NSPeriodicDelay">200</int>
 								<int key="NSPeriodicInterval">25</int>
 							</object>
+							<bool key="NSAllowsLogicalLayoutDirection">NO</bool>
 						</object>
 						<object class="NSButton" id="525305388">
 							<reference key="NSNextResponder" ref="439893737"/>
 							<string key="NSFrame">{{363, 297}, {62, 32}}</string>
 							<reference key="NSSuperview" ref="439893737"/>
 							<reference key="NSWindow"/>
-							<reference key="NSNextKeyView"/>
 							<string key="NSReuseIdentifierKey">_NS:9</string>
 							<bool key="NSEnabled">YES</bool>
 							<object class="NSButtonCell" key="NSCell" id="820876067">
 								<int key="NSPeriodicDelay">200</int>
 								<int key="NSPeriodicInterval">25</int>
 							</object>
+							<bool key="NSAllowsLogicalLayoutDirection">NO</bool>
 						</object>
 						<object class="NSTextField" id="1033023028">
 							<reference key="NSNextResponder" ref="439893737"/>
 									</object>
 								</object>
 							</object>
+							<bool key="NSAllowsLogicalLayoutDirection">NO</bool>
+						</object>
+						<object class="NSButton" id="715452314">
+							<reference key="NSNextResponder" ref="439893737"/>
+							<int key="NSvFlags">268</int>
+							<string key="NSFrame">{{209, 4}, {58, 32}}</string>
+							<reference key="NSSuperview" ref="439893737"/>
+							<reference key="NSWindow"/>
+							<string key="NSReuseIdentifierKey">_NS:9</string>
+							<bool key="NSEnabled">YES</bool>
+							<object class="NSButtonCell" key="NSCell" id="207466999">
+								<int key="NSCellFlags">67108864</int>
+								<int key="NSCellFlags2">134217728</int>
+								<string key="NSContents">Clr</string>
+								<reference key="NSSupport" ref="40806189"/>
+								<string key="NSCellIdentifier">_NS:9</string>
+								<reference key="NSControlView" ref="715452314"/>
+								<int key="NSButtonFlags">-2038284288</int>
+								<int key="NSButtonFlags2">129</int>
+								<string key="NSAlternateContents"/>
+								<string key="NSKeyEquivalent"/>
+								<int key="NSPeriodicDelay">200</int>
+								<int key="NSPeriodicInterval">25</int>
+							</object>
+							<bool key="NSAllowsLogicalLayoutDirection">NO</bool>
 						</object>
 					</array>
 					<string key="NSFrameSize">{480, 360}</string>
 					</object>
 					<int key="connectionID">633</int>
 				</object>
+				<object class="IBConnectionRecord">
+					<object class="IBActionConnection" key="connection">
+						<string key="label">clr:</string>
+						<reference key="source" ref="501459263"/>
+						<reference key="destination" ref="715452314"/>
+					</object>
+					<int key="connectionID">642</int>
+				</object>
 			</array>
 			<object class="IBMutableOrderedSet" key="objectRecords">
 				<array key="orderedObjects">
 						<int key="objectID">372</int>
 						<reference key="object" ref="439893737"/>
 						<array class="NSMutableArray" key="children">
+							<object class="IBNSLayoutConstraint" id="216373341">
+								<reference key="firstItem" ref="439893737"/>
+								<int key="firstAttribute">4</int>
+								<int key="relation">0</int>
+								<reference key="secondItem" ref="715452314"/>
+								<int key="secondAttribute">4</int>
+								<float key="multiplier">1</float>
+								<object class="IBLayoutConstant" key="constant">
+									<double key="value">11</double>
+								</object>
+								<float key="priority">1000</float>
+								<reference key="containingView" ref="439893737"/>
+								<int key="scoringType">3</int>
+								<float key="scoringTypeFloat">9</float>
+								<int key="contentType">3</int>
+							</object>
+							<object class="IBNSLayoutConstraint" id="948273884">
+								<reference key="firstItem" ref="715452314"/>
+								<int key="firstAttribute">5</int>
+								<int key="relation">0</int>
+								<reference key="secondItem" ref="164244135"/>
+								<int key="secondAttribute">5</int>
+								<float key="multiplier">1</float>
+								<object class="IBLayoutConstant" key="constant">
+									<double key="value">0.0</double>
+								</object>
+								<float key="priority">1000</float>
+								<reference key="containingView" ref="439893737"/>
+								<int key="scoringType">6</int>
+								<float key="scoringTypeFloat">24</float>
+								<int key="contentType">2</int>
+							</object>
 							<object class="IBNSLayoutConstraint" id="657764683">
 								<reference key="firstItem" ref="525305388"/>
 								<int key="firstAttribute">11</int>
 							<reference ref="164244135"/>
 							<reference ref="525305388"/>
 							<reference ref="1033023028"/>
+							<reference ref="715452314"/>
 						</array>
 						<reference key="parent" ref="972006081"/>
 					</object>
 						<reference key="object" ref="1018164782"/>
 						<reference key="parent" ref="1033023028"/>
 					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">634</int>
+						<reference key="object" ref="715452314"/>
+						<array class="NSMutableArray" key="children">
+							<reference ref="207466999"/>
+						</array>
+						<reference key="parent" ref="439893737"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">635</int>
+						<reference key="object" ref="207466999"/>
+						<reference key="parent" ref="715452314"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">639</int>
+						<reference key="object" ref="948273884"/>
+						<reference key="parent" ref="439893737"/>
+					</object>
+					<object class="IBObjectRecord">
+						<int key="objectID">640</int>
+						<reference key="object" ref="216373341"/>
+						<reference key="parent" ref="439893737"/>
+					</object>
 				</array>
 			</object>
 			<dictionary class="NSMutableDictionary" key="flattenedProperties">
 					<reference ref="185797402"/>
 					<reference ref="656865264"/>
 					<reference ref="657764683"/>
+					<reference ref="948273884"/>
+					<reference ref="216373341"/>
 				</array>
 				<string key="372.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
 				<string key="375.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
 				<string key="630.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
 				<string key="631.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
 				<string key="632.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+				<boolean value="NO" key="634.IBNSViewMetadataTranslatesAutoresizingMaskIntoConstraints"/>
+				<string key="634.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+				<string key="635.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+				<string key="639.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
+				<string key="640.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
 				<string key="72.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
 				<string key="73.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
 				<string key="74.IBPluginDependency">com.apple.InterfaceBuilder.CocoaPlugin</string>
 			<nil key="activeLocalization"/>
 			<dictionary class="NSMutableDictionary" key="localizations"/>
 			<nil key="sourceID"/>
-			<int key="maxID">633</int>
+			<int key="maxID">642</int>
 		</object>
 		<object class="IBClassDescriber" key="IBDocument.Classes">
 			<array class="NSMutableArray" key="referencedPartialClassDescriptions">
 						<string key="Cur:">id</string>
 						<string key="Res:">id</string>
 						<string key="Vol:">id</string>
+						<string key="clr:">id</string>
 					</dictionary>
 					<dictionary class="NSMutableDictionary" key="actionInfosByName">
 						<object class="IBActionInfo" key="Cur:">
 							<string key="name">Vol:</string>
 							<string key="candidateClassName">id</string>
 						</object>
+						<object class="IBActionInfo" key="clr:">
+							<string key="name">clr:</string>
+							<string key="candidateClassName">id</string>
+						</object>
 					</dictionary>
 					<object class="NSMutableDictionary" key="outlets">
 						<string key="NS.key.0">result</string>