Anonymous avatar Anonymous committed 1ae5d36

Various fixes

Comments (0)

Files changed (4)

BWHyperlinkButton.m

 	[self addCursorRect:[self bounds] cursor:[NSCursor pointingHandCursor]];
 }
 
+- (void)dealloc
+{
+	[urlString release];
+	[super dealloc];
+}
+
 @end

BWHyperlinkButtonInspector.xib

 		<object class="NSMutableArray" key="IBDocument.RootObjects" id="110858478">
 			<bool key="EncodedWithXMLCoder">YES</bool>
 			<object class="NSCustomObject" id="762632889">
-				<string key="NSClassName">IBInspector</string>
+				<string key="NSClassName">BWHyperlinkButtonInspector</string>
 			</object>
 			<object class="NSCustomObject" id="932410077">
 				<string key="NSClassName">FirstResponder</string>
 			<object class="NSMutableArray" key="referencedPartialClassDescriptions">
 				<bool key="EncodedWithXMLCoder">YES</bool>
 				<object class="IBPartialClassDescription">
+					<string key="className">BWHyperlinkButtonInspector</string>
+					<string key="superclassName">IBInspector</string>
+					<object class="IBClassDescriptionSource" key="sourceIdentifier">
+						<string key="majorKey">IBProjectSource</string>
+						<string key="minorKey">BWHyperlinkButtonInspector.h</string>
+					</object>
+				</object>
+				<object class="IBPartialClassDescription">
 					<string key="className">NSView</string>
 					<object class="IBClassDescriptionSource" key="sourceIdentifier">
 						<string key="majorKey">IBProjectSource</string>

BWSelectableToolbar.m

 - (NSString *)identifierAtIndex:(int)index
 {
 	NSToolbarItem *item;
-	NSString *newIdentifier;
+	NSString *newIdentifier = nil;
 	if ([[self editableToolbar] items].count > 1)
 	{
 		item = [[[self editableToolbar] items] objectAtIndex:index];
 		[helper setOldWindowTitle:[[self parentOfObject:self] title]];
 		
 		// Change the window title to the name of the active tab
-		NSToolbarItem *selectedItem;
+		NSToolbarItem *selectedItem = nil;
 		for (NSToolbarItem *item in [[self editableToolbar] items])
 		{
 			if ([[item itemIdentifier] isEqualToString:[[self editableToolbar] selectedItemIdentifier]])

BWSplitViewInspectorAutosizingView.m

 				buttonRect = NSMakeRect(0, y, self.bounds.size.width, self.bounds.size.height - y);
 		}
 		
-		NSButton *subviewButton = [[NSButton alloc] initWithFrame:buttonRect];
-		[subviewButton setCell:[[BWSplitViewInspectorAutosizingButtonCell alloc] initTextCell:@""]];
+		NSButton *subviewButton = [[[NSButton alloc] initWithFrame:buttonRect] autorelease];
+		[subviewButton setCell:[[[BWSplitViewInspectorAutosizingButtonCell alloc] initTextCell:@""] autorelease]];
 		[subviewButton setTarget:self];
 		[subviewButton setAction:@selector(updateValues:)];
 		[subviewButton setTag:i];
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.