adium 3735:4c5ed7382324: Quiet a post-10.5 SDK build warning in ...
commits at adium.im
commits at adium.im
Tue Mar 15 04:01:36 UTC 2011
details: http://hg.adium.im/adium/rev/4c5ed7382324
revision: 3735:4c5ed7382324
branch: (none)
author: Stephen Holt <sholt at adium.im>
date: Tue Mar 01 20:45:11 2011 -0800
Quiet a post-10.5 SDK build warning in AITooltipUtils. Still 10.5 compatable.
Subject: adium 3736:1fbe7bf5bb9f: Update to protocols and cast properly for our outline views
details: http://hg.adium.im/adium/rev/1fbe7bf5bb9f
revision: 3736:1fbe7bf5bb9f
branch: (none)
author: Stephen Holt <sholt at adium.im>
date: Tue Mar 01 20:45:11 2011 -0800
Update to protocols and cast properly for our outline views
Subject: adium 3737:f06bf1a9d888: fixes for various type warnings, including unimplimented protocols.
details: http://hg.adium.im/adium/rev/f06bf1a9d888
revision: 3737:f06bf1a9d888
branch: (none)
author: Stephen Holt <sholt at adium.im>
date: Tue Mar 01 20:45:11 2011 -0800
fixes for various type warnings, including unimplimented protocols.
Subject: adium 3738:b9688fdb4343: Fix a warning for AutoHyperlink's propety getter/setters.
details: http://hg.adium.im/adium/rev/b9688fdb4343
revision: 3738:b9688fdb4343
branch: (none)
author: Stephen Holt <sholt at adium.im>
date: Mon Mar 14 00:33:11 2011 -0700
Fix a warning for AutoHyperlink's propety getter/setters.
Subject: adium 3739:91e67f026006: Remove some methods depricated in 10.6, but with replacements available in 10.5
details: http://hg.adium.im/adium/rev/91e67f026006
revision: 3739:91e67f026006
branch: (none)
author: Stephen Holt <sholt at adium.im>
date: Mon Mar 14 00:58:21 2011 -0700
Remove some methods depricated in 10.6, but with replacements available in 10.5
Subject: adium 3740:30077293fc5b: sweep this 64->32 warning under the rug, since it's in some generated code.
details: http://hg.adium.im/adium/rev/30077293fc5b
revision: 3740:30077293fc5b
branch: (none)
author: Stephen Holt <sholt at adium.im>
date: Mon Mar 14 21:01:04 2011 -0700
sweep this 64->32 warning under the rug, since it's in some generated code.
diffs (980 lines):
diff -r 42dcf07091ca -r 30077293fc5b Frameworks/AIUtilities Framework/Source/AIDividedAlternatingRowOutlineView.h
--- a/Frameworks/AIUtilities Framework/Source/AIDividedAlternatingRowOutlineView.h Sun Mar 13 01:30:08 2011 +0200
+++ b/Frameworks/AIUtilities Framework/Source/AIDividedAlternatingRowOutlineView.h Mon Mar 14 21:01:04 2011 -0700
@@ -27,6 +27,16 @@
} AIDividerPosition;
/*!
+ * @protocol AIDividedAlternatingRowOutlineView_Delegate
+ * @brief Informal protocol for implementing a message to verify if an item is supposed to have a divider
+ *
+ */
+ at protocol AIDividedAlternatingRowOutlineViewDelegate
+ at optional
+- (AIDividerPosition)outlineView:(NSOutlineView*)outlineView dividerPositionForItem:(id)item;
+ at end
+
+/*!
* @class AIDividedAlternatingRowOutlineView
* @brief An AIAlternatingRowOutlineView subclass supporting a divider below specified elements
*/
@@ -34,12 +44,3 @@
}
@end
-
-/*!
- * @protocol AIDividedAlternatingRowOutlineView_Delegate
- * @brief Informal protocol for implementing a message to verify if an item is supposed to have a divider
- *
- */
- at interface NSObject (AIDividedAlternatingRowOutlineView_Delegate)
-- (AIDividerPosition)outlineView:(NSOutlineView*)outlineView dividerPositionForItem:(id)item;
- at end
diff -r 42dcf07091ca -r 30077293fc5b Frameworks/AIUtilities Framework/Source/AIDividedAlternatingRowOutlineView.m
--- a/Frameworks/AIUtilities Framework/Source/AIDividedAlternatingRowOutlineView.m Sun Mar 13 01:30:08 2011 +0200
+++ b/Frameworks/AIUtilities Framework/Source/AIDividedAlternatingRowOutlineView.m Mon Mar 14 21:01:04 2011 -0700
@@ -30,7 +30,7 @@
//Does the dataSource know what we want to know?
if ([[self dataSource] respondsToSelector:@selector(outlineView:dividerPositionForItem:)]) {
//Position of the divider
- dividerPosition = [[self dataSource] outlineView:self dividerPositionForItem:[self itemAtRow:rowIndex]];
+ dividerPosition = [(id<AIDividedAlternatingRowOutlineViewDelegate>)[self dataSource] outlineView:self dividerPositionForItem:[self itemAtRow:rowIndex]];
} else {
dividerPosition = AIDividerPositionNone;
}
diff -r 42dcf07091ca -r 30077293fc5b Frameworks/AIUtilities Framework/Source/AILeopardCompatibility.h
--- a/Frameworks/AIUtilities Framework/Source/AILeopardCompatibility.h Sun Mar 13 01:30:08 2011 +0200
+++ b/Frameworks/AIUtilities Framework/Source/AILeopardCompatibility.h Mon Mar 14 21:01:04 2011 -0700
@@ -60,6 +60,8 @@
- (BOOL)popUpMenuPositioningItem:(NSMenuItem *)item atLocation:(NSPoint)location inView:(NSView *)view;
@end
+ at protocol NSDraggingDestination
+ at end
@protocol NSToolbarDelegate
@end
@protocol NSSplitViewDelegate
@@ -88,6 +90,8 @@
@end
@protocol NSTableViewDataSource
@end
+ at protocol NSTabViewDelegate
+ at end
@protocol NSTextFieldDelegate
@end
@protocol NSAnimationDelegate
diff -r 42dcf07091ca -r 30077293fc5b Frameworks/AIUtilities Framework/Source/AIMultiCellOutlineView.h
--- a/Frameworks/AIUtilities Framework/Source/AIMultiCellOutlineView.h Sun Mar 13 01:30:08 2011 +0200
+++ b/Frameworks/AIUtilities Framework/Source/AIMultiCellOutlineView.h Mon Mar 14 21:01:04 2011 -0700
@@ -64,7 +64,7 @@
@end
- at interface NSObject (AIMultiCellOutlineViewDelegate)
+ at protocol AIMultiCellOutlineViewDelegate
/*
* @brief Is this item a group?
*
diff -r 42dcf07091ca -r 30077293fc5b Frameworks/AIUtilities Framework/Source/AIMultiCellOutlineView.m
--- a/Frameworks/AIUtilities Framework/Source/AIMultiCellOutlineView.m Sun Mar 13 01:30:08 2011 +0200
+++ b/Frameworks/AIUtilities Framework/Source/AIMultiCellOutlineView.m Mon Mar 14 21:01:04 2011 -0700
@@ -82,7 +82,7 @@
}
- (id)cellForTableColumn:(NSTableColumn *)tableColumn item:(id)item
{
- return ([[self delegate] outlineView:self isGroup:item] ? groupCell : contentCell);
+ return ([(id<AIMultiCellOutlineViewDelegate>)[self delegate] outlineView:self isGroup:item] ? groupCell : contentCell);
}
/*!
@@ -108,7 +108,7 @@
/* XXX - This is kind of a hack. We need to check < WidthOfDisclosureTriangle, and are using the fact that
* the disclosure width is about the same as the height of the row to fudge it. -ai
*/
- if ([[self delegate] outlineView:self isGroup:item]) {
+ if ([(id<AIMultiCellOutlineViewDelegate>)[self delegate] outlineView:self isGroup:item]) {
/* For a group, perform the expand/collapse */
if ([self isItemExpanded:item]) {
[self collapseItem:item];
diff -r 42dcf07091ca -r 30077293fc5b Frameworks/AIUtilities Framework/Source/AITableViewAdditions.m
--- a/Frameworks/AIUtilities Framework/Source/AITableViewAdditions.m Sun Mar 13 01:30:08 2011 +0200
+++ b/Frameworks/AIUtilities Framework/Source/AITableViewAdditions.m Mon Mar 14 21:01:04 2011 -0700
@@ -101,7 +101,7 @@
//Check if 'delete' was pressed
if (pressedChar == NSDeleteFunctionKey || pressedChar == NSBackspaceCharacter || pressedChar == NSDeleteCharacter) { //Delete
if ([[self delegate] respondsToSelector:@selector(tableViewDeleteSelectedRows:)])
- [[self delegate] tableViewDeleteSelectedRows:self]; //Delete the selection
+ [(id <AITableViewDelegate>)[self delegate] tableViewDeleteSelectedRows:self]; //Delete the selection
} else {
//Pass the key event on to the unswizzled impl
method_invoke(self, class_getInstanceMethod([AITableView class], @selector(keyDown:)), theEvent);
diff -r 42dcf07091ca -r 30077293fc5b Frameworks/AIUtilities Framework/Source/AIToolbarTabView.h
--- a/Frameworks/AIUtilities Framework/Source/AIToolbarTabView.h Sun Mar 13 01:30:08 2011 +0200
+++ b/Frameworks/AIUtilities Framework/Source/AIToolbarTabView.h Mon Mar 14 21:01:04 2011 -0700
@@ -15,32 +15,16 @@
*/
#import <AIUtilities/AILeopardCompatibility.h>
-/*!
- * @class AIToolbarTabView
- * @brief <tt>NSTabView</tt> subclass for creating preference-type windows
- *
- * <p>This is a special <tt>NSTabView</tt> subclass which is useful when creating preference-type windows. The tabview will automatically create a window toolbar and add an toolbar item for each tab it contains. The tabview delegate will be asked for the toolbar images.</p>
- * <p>This class also contains methods for auto-sizing the parent window based on the selected tab. The delegate is asked for the window size, and this tabview takes care of the animation.</p>
- * @see <tt><a href="category_n_s_object(_a_i_toolbar_tab_view_delegate).html" target="_top">NSObject(AIToolbarTabViewDelegate)</a></tt>
-*/
- at interface AIToolbarTabView : NSTabView <NSToolbarDelegate> {
- NSMutableDictionary *toolbarItems;
- int oldHeight;
-
- IBOutlet NSTabViewItem *tabViewItem_loading;
- IBOutlet NSProgressIndicator *progressIndicator_loading;
-}
-
- at end
/*!
- * @category NSObject(AIToolbarTabViewDelegate)
+ * @protocol AIToolbarTabViewDelegate
* @brief Methods which may optionally be implemented by an <tt>AIToolbarTabView</tt>'s delegate
*
* These methods allow the delegate greater control over the tab view.
*/
- at interface NSObject (AIToolbarTabViewDelegate)
+ at protocol AIToolbarTabViewDelegate
+ at optional
/*!
* @brief Allows automatic creation of toolbar items for each <tt>NSTabViewItem</tt> the <tt>AIToolbarTabView</tt> contains.
*
@@ -83,3 +67,21 @@
@end
+
+/*!
+ * @class AIToolbarTabView
+ * @brief <tt>NSTabView</tt> subclass for creating preference-type windows
+ *
+ * <p>This is a special <tt>NSTabView</tt> subclass which is useful when creating preference-type windows. The tabview will automatically create a window toolbar and add an toolbar item for each tab it contains. The tabview delegate will be asked for the toolbar images.</p>
+ * <p>This class also contains methods for auto-sizing the parent window based on the selected tab. The delegate is asked for the window size, and this tabview takes care of the animation.</p>
+ * @see <tt><a href="category_n_s_object(_a_i_toolbar_tab_view_delegate).html" target="_top">NSObject(AIToolbarTabViewDelegate)</a></tt>
+*/
+ at interface AIToolbarTabView : NSTabView <NSToolbarDelegate, AIToolbarTabViewDelegate> {
+ NSMutableDictionary *toolbarItems;
+ int oldHeight;
+
+ IBOutlet NSTabViewItem *tabViewItem_loading;
+ IBOutlet NSProgressIndicator *progressIndicator_loading;
+}
+
+ at end
diff -r 42dcf07091ca -r 30077293fc5b Frameworks/AIUtilities Framework/Source/AIToolbarTabView.m
--- a/Frameworks/AIUtilities Framework/Source/AIToolbarTabView.m Sun Mar 13 01:30:08 2011 +0200
+++ b/Frameworks/AIUtilities Framework/Source/AIToolbarTabView.m Mon Mar 14 21:01:04 2011 -0700
@@ -74,7 +74,7 @@
NSString *label = nil;
if ([[self delegate] respondsToSelector:@selector(tabView:labelForTabViewItem:)]) {
- label = [[self delegate] tabView:self labelForTabViewItem:tabViewItem];
+ label = [(id<AIToolbarTabViewDelegate>)[self delegate] tabView:self labelForTabViewItem:tabViewItem];
}
if (!label) label = [tabViewItem label];
@@ -89,7 +89,7 @@
toolTip:label
target:self
settingSelector:@selector(setImage:)
- itemContent:[[self delegate] tabView:self
+ itemContent:[(id<AIToolbarTabViewDelegate>)[self delegate] tabView:self
imageForTabViewItem:tabViewItem]
action:@selector(selectCategory:)
menu:NULL];
@@ -157,7 +157,7 @@
[super selectTabViewItem:tabViewItem_loading];
if (![[self delegate] respondsToSelector:@selector(immediatelyShowLoadingIndicatorForTabView:willSelectTabViewItem:)] ||
- [[self delegate] immediatelyShowLoadingIndicatorForTabView:self willSelectTabViewItem:tabViewItem]) {
+ [(id<AIToolbarTabViewDelegate>)[self delegate] immediatelyShowLoadingIndicatorForTabView:self willSelectTabViewItem:tabViewItem]) {
[[self window] display];
}
@@ -180,7 +180,7 @@
//Resize the window
if ([[self delegate] respondsToSelector:@selector(tabView:heightForTabViewItem:)]) {
- int height = [[self delegate] tabView:self heightForTabViewItem:tabViewItem];
+ int height = [(id<AIToolbarTabViewDelegate>)[self delegate] tabView:self heightForTabViewItem:tabViewItem];
BOOL isVisible = [[self window] isVisible];
NSRect frame = [[self window] frame];
diff -r 42dcf07091ca -r 30077293fc5b Frameworks/AIUtilities Framework/Source/AITooltipUtilities.m
--- a/Frameworks/AIUtilities Framework/Source/AITooltipUtilities.m Sun Mar 13 01:30:08 2011 +0200
+++ b/Frameworks/AIUtilities Framework/Source/AITooltipUtilities.m Mon Mar 14 21:01:04 2011 -0700
@@ -15,6 +15,7 @@
*/
#import "AITooltipUtilities.h"
+#import "AILeopardCompatibility.h"
#import <libkern/OSAtomic.h>
#define TOOLTIP_MAX_WIDTH 300
@@ -246,7 +247,7 @@
tooltipWindow, NSViewAnimationTargetKey,
NSViewAnimationFadeOutEffect, NSViewAnimationEffectKey,
nil]]];
- [fadeOutAnimation setDelegate:self];
+ [fadeOutAnimation setDelegate:(id<NSAnimationDelegate>)self];
[fadeOutAnimation setDuration:0.25f];
[fadeOutAnimation setAnimationCurve:NSAnimationLinear];
[fadeOutAnimation startAnimation];
diff -r 42dcf07091ca -r 30077293fc5b Frameworks/AIUtilities Framework/Source/AIVariableHeightFlexibleColumnsOutlineView.h
--- a/Frameworks/AIUtilities Framework/Source/AIVariableHeightFlexibleColumnsOutlineView.h Sun Mar 13 01:30:08 2011 +0200
+++ b/Frameworks/AIUtilities Framework/Source/AIVariableHeightFlexibleColumnsOutlineView.h Mon Mar 14 21:01:04 2011 -0700
@@ -22,6 +22,6 @@
@end
- at interface NSObject (AIVariableHeightFlexibleColumnsOutlineViewDelegate)
+ at protocol AIVariableHeightFlexibleColumnsOutlineViewDelegate
- (BOOL)outlineView:(NSOutlineView *)inOutlineView extendToEdgeColumn:(NSInteger)column ofRow:(NSInteger)row;
@end
diff -r 42dcf07091ca -r 30077293fc5b Frameworks/AIUtilities Framework/Source/AIVariableHeightFlexibleColumnsOutlineView.m
--- a/Frameworks/AIUtilities Framework/Source/AIVariableHeightFlexibleColumnsOutlineView.m Sun Mar 13 01:30:08 2011 +0200
+++ b/Frameworks/AIUtilities Framework/Source/AIVariableHeightFlexibleColumnsOutlineView.m Mon Mar 14 21:01:04 2011 -0700
@@ -34,7 +34,7 @@
{
NSRect frameOfCell = [super frameOfCellAtColumn:column row:row];
if ([[self delegate] respondsToSelector:@selector(outlineView:extendToEdgeColumn:ofRow:)] &&
- [[self delegate] outlineView:self extendToEdgeColumn:column ofRow:row]) {
+ [(id<AIVariableHeightFlexibleColumnsOutlineViewDelegate>)[self delegate] outlineView:self extendToEdgeColumn:column ofRow:row]) {
frameOfCell.size.width = [self frame].size.width - frameOfCell.origin.x - AIround(([self intercellSpacing].width)/2);
}
@@ -129,7 +129,7 @@
//Stop drawing if this column extends to the edge
if (delegateRespondsToExtendToEdgeColumn &&
- [[self delegate] outlineView:self extendToEdgeColumn:tableColumnIndex ofRow:row]) {
+ [(id<AIVariableHeightFlexibleColumnsOutlineViewDelegate>)[self delegate] outlineView:self extendToEdgeColumn:tableColumnIndex ofRow:row]) {
break;
}
}
diff -r 42dcf07091ca -r 30077293fc5b Frameworks/Adium Framework/Source/AIAbstractListController.m
--- a/Frameworks/Adium Framework/Source/AIAbstractListController.m Sun Mar 13 01:30:08 2011 +0200
+++ b/Frameworks/Adium Framework/Source/AIAbstractListController.m Mon Mar 14 21:01:04 2011 -0700
@@ -614,7 +614,7 @@
AIProxyListObject *proxyListObject;
if (item) {
- AIListObject<AIContainingObject> *listObject = item.listObject;
+ id<AIContainingObject>listObject = item.listObject;
proxyListObject = [AIProxyListObject proxyListObjectForListObject:[listObject visibleObjectAtIndex:idx]
inListObject:listObject];
@@ -633,7 +633,7 @@
NSInteger children;
if (item) {
- AIListObject<AIContainingObject> *listObject = item.listObject;
+ id<AIContainingObject>listObject = item.listObject;
children = listObject.visibleCount;
} else if (hideRoot)
diff -r 42dcf07091ca -r 30077293fc5b Frameworks/Adium Framework/Source/AIAuthorizationRequestsWindowController.h
--- a/Frameworks/Adium Framework/Source/AIAuthorizationRequestsWindowController.h Sun Mar 13 01:30:08 2011 +0200
+++ b/Frameworks/Adium Framework/Source/AIAuthorizationRequestsWindowController.h Mon Mar 14 21:01:04 2011 -0700
@@ -28,7 +28,7 @@
@class AIAccount;
- at interface AIAuthorizationRequestsWindowController : AIWindowController <NSToolbarDelegate> {
+ at interface AIAuthorizationRequestsWindowController : AIWindowController <NSToolbarDelegate,NSTableViewDelegate,NSTableViewDataSource> {
IBOutlet NSTableView *tableView;
NSMutableArray *requests;
diff -r 42dcf07091ca -r 30077293fc5b Frameworks/Adium Framework/Source/AIChat.m
--- a/Frameworks/Adium Framework/Source/AIChat.m Sun Mar 13 01:30:08 2011 +0200
+++ b/Frameworks/Adium Framework/Source/AIChat.m Mon Mar 14 21:01:04 2011 -0700
@@ -446,7 +446,7 @@
- (AIListContact *)listObject
{
if (self.countOfContainedObjects == 1 && !self.isGroupChat) {
- return [self visibleObjectAtIndex:0];
+ return (AIListContact *)[self visibleObjectAtIndex:0];
}
return nil;
diff -r 42dcf07091ca -r 30077293fc5b Frameworks/Adium Framework/Source/AIContactControllerProtocol.h
--- a/Frameworks/Adium Framework/Source/AIContactControllerProtocol.h Sun Mar 13 01:30:08 2011 +0200
+++ b/Frameworks/Adium Framework/Source/AIContactControllerProtocol.h Mon Mar 14 21:01:04 2011 -0700
@@ -98,7 +98,7 @@
* @brief Returns a flat array of all contacts
*/
@property (readonly, nonatomic) NSArray *allContacts;
-- (NSArray *)allContactsInObject:(AIListObject<AIContainingObject> *)inGroup onAccount:(AIAccount *)inAccount;
+- (NSArray *)allContactsInObject:(id<AIContainingObject>)inGroup onAccount:(AIAccount *)inAccount;
@property (readonly, nonatomic) NSArray *allBookmarks;
@property (readonly, nonatomic) NSArray *allMetaContacts;
- (NSMenu *)groupMenuWithTarget:(id)target;
diff -r 42dcf07091ca -r 30077293fc5b Frameworks/Adium Framework/Source/AIContactHidingController.m
--- a/Frameworks/Adium Framework/Source/AIContactHidingController.m Sun Mar 13 01:30:08 2011 +0200
+++ b/Frameworks/Adium Framework/Source/AIContactHidingController.m Mon Mar 14 21:01:04 2011 -0700
@@ -205,7 +205,7 @@
// If the given contact is a meta contact, check all of its contained objects.
if ([listObject conformsToProtocol:@protocol(AIContainingObject)]) {
- for (AIListContact *containedContact in (AIListContact<AIContainingObject> *)listObject) {
+ for (AIListContact *containedContact in (id<AIContainingObject>)listObject) {
if ([filterPredicate evaluateWithObject:containedContact])
return YES;
}
diff -r 42dcf07091ca -r 30077293fc5b Frameworks/Adium Framework/Source/AIContactMenu.h
--- a/Frameworks/Adium Framework/Source/AIContactMenu.h Sun Mar 13 01:30:08 2011 +0200
+++ b/Frameworks/Adium Framework/Source/AIContactMenu.h Mon Mar 14 21:01:04 2011 -0700
@@ -14,6 +14,7 @@
* write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#import <AIUtilities/AILeopardCompatibility.h>
#import <Adium/AIAbstractListObjectMenu.h>
#import <Adium/AIContactObserverManager.h>
@@ -21,7 +22,7 @@
@protocol AIContactMenuDelegate;
- at interface AIContactMenu : AIAbstractListObjectMenu <AIListObjectObserver> {
+ at interface AIContactMenu : AIAbstractListObjectMenu <AIListObjectObserver,NSMenuDelegate> {
AIListObject *containingObject;
id<AIContactMenuDelegate> delegate;
diff -r 42dcf07091ca -r 30077293fc5b Frameworks/Adium Framework/Source/AIContactMenu.m
--- a/Frameworks/Adium Framework/Source/AIContactMenu.m Sun Mar 13 01:30:08 2011 +0200
+++ b/Frameworks/Adium Framework/Source/AIContactMenu.m Mon Mar 14 21:01:04 2011 -0700
@@ -216,7 +216,7 @@
} else {
// We can assume these are already sorted
listObjects = [self listObjectsForMenuFromArrayOfListObjects:([containingObject conformsToProtocol:@protocol(AIContainingObject)] ?
- [(AIListObject<AIContainingObject> *)containingObject uniqueContainedObjects] :
+ [(id<AIContainingObject>)containingObject uniqueContainedObjects] :
[NSArray arrayWithObject:containingObject])];
}
@@ -277,7 +277,7 @@
for (AIListObject *listObject in listObjects) {
// Display groups inline
if ([listObject isKindOfClass:[AIListGroup class]]) {
- NSArray *containedListObjects = [self listObjectsForMenuFromArrayOfListObjects:[(AIListObject<AIContainingObject> *)listObject uniqueContainedObjects]];
+ NSArray *containedListObjects = [self listObjectsForMenuFromArrayOfListObjects:[(id<AIContainingObject>)listObject uniqueContainedObjects]];
// If there's any contained list objects, add ourself as a group and add the contained objects.
if ([containedListObjects count] > 0) {
diff -r 42dcf07091ca -r 30077293fc5b Frameworks/Adium Framework/Source/AIContactObserverManager.m
--- a/Frameworks/Adium Framework/Source/AIContactObserverManager.m Sun Mar 13 01:30:08 2011 +0200
+++ b/Frameworks/Adium Framework/Source/AIContactObserverManager.m Mon Mar 14 21:01:04 2011 -0700
@@ -189,7 +189,7 @@
//If we're handed something that can contain other contacts, update the status of the contacts contained within it
if ([inContact conformsToProtocol:@protocol(AIContainingObject)]) {
- for (AIListContact *contact in (AIListObject <AIContainingObject> *)inContact) {
+ for (AIListContact *contact in (id <AIContainingObject>)inContact) {
[self updateListContactStatus:contact];
}
diff -r 42dcf07091ca -r 30077293fc5b Frameworks/Adium Framework/Source/AIListContact.h
--- a/Frameworks/Adium Framework/Source/AIListContact.h Sun Mar 13 01:30:08 2011 +0200
+++ b/Frameworks/Adium Framework/Source/AIListContact.h Mon Mar 14 21:01:04 2011 -0700
@@ -49,7 +49,7 @@
- (id)initWithUID:(NSString *)inUID account:(AIAccount *)inAccount service:(AIService *)inService;
- (id)initWithUID:(NSString *)inUID service:(AIService *)inService;
- at property (readonly, nonatomic) AIListObject<AIContainingObject> *containingObject __attribute__((deprecated));
+ at property (readonly, nonatomic) id<AIContainingObject>containingObject __attribute__((deprecated));
@property (readwrite, copy, nonatomic) NSSet *remoteGroupNames;
@property (readonly, nonatomic) NSUInteger countOfRemoteGroupNames;
@property (readonly, nonatomic) NSSet *remoteGroups;
diff -r 42dcf07091ca -r 30077293fc5b Frameworks/Adium Framework/Source/AIListContactMockieCell.m
--- a/Frameworks/Adium Framework/Source/AIListContactMockieCell.m Sun Mar 13 01:30:08 2011 +0200
+++ b/Frameworks/Adium Framework/Source/AIListContactMockieCell.m Mon Mar 14 21:01:04 2011 -0700
@@ -68,7 +68,7 @@
bezierPath = [NSBezierPath bezierPathWithRoundedRect:rect radius:MOCKIE_RADIUS];
}
- } else if (row >= (numberOfRows-1) || [[controlView delegate] outlineView:controlView isGroup:[controlView itemAtRow:row+1]]) {
+ } else if (row >= (numberOfRows-1) || [(id<AIMultiCellOutlineViewDelegate>)[controlView delegate] outlineView:controlView isGroup:[controlView itemAtRow:row+1]]) {
//Draw the bottom corners rounded if this is the last cell in a group
bezierPath = [NSBezierPath bezierPathWithRoundedBottomCorners:rect radius:MOCKIE_RADIUS];
diff -r 42dcf07091ca -r 30077293fc5b Frameworks/Adium Framework/Source/AIListObject.m
--- a/Frameworks/Adium Framework/Source/AIListObject.m Sun Mar 13 01:30:08 2011 +0200
+++ b/Frameworks/Adium Framework/Source/AIListObject.m Mon Mar 14 21:01:04 2011 -0700
@@ -236,7 +236,7 @@
- (void) moveContainedObject:(AIListObject *)listObject toIndex:(NSInteger)idx
{
- AIListObject<AIContainingObject> *container = (AIListObject<AIContainingObject> *)self;
+ id<AIContainingObject>container = (id<AIContainingObject>)self;
// We can't enforce this, since we're asked to set it for objects we don't yet *officially* contain.
//NSAssert([container.containedObjects containsObject:listObject], @"Asked to set an index for an object which doesn't exist.");
@@ -759,7 +759,7 @@
if (!orderIndexForObject) {
orderIndexForObject = self.largestOrder + 1;
- [(AIListObject<AIContainingObject> *)self listObject:listObject didSetOrderIndex: orderIndexForObject];
+ [(id<AIContainingObject>)self listObject:listObject didSetOrderIndex: orderIndexForObject];
}
return orderIndexForObject;
diff -r 42dcf07091ca -r 30077293fc5b Frameworks/Adium Framework/Source/JVFontPreviewField.h
--- a/Frameworks/Adium Framework/Source/JVFontPreviewField.h Sun Mar 13 01:30:08 2011 +0200
+++ b/Frameworks/Adium Framework/Source/JVFontPreviewField.h Mon Mar 14 21:01:04 2011 -0700
@@ -19,6 +19,7 @@
@class NSFont;
+
@interface JVFontPreviewField : NSTextField {
NSFont *_actualFont;
BOOL _showPointSize;
@@ -32,7 +33,7 @@
- (void)setShowFontFace:(BOOL)show;
@end
- at interface NSObject (JVFontPreviewFieldDelegate)
+ at protocol JVFontPreviewFieldDelegate
- (BOOL)fontPreviewField:(JVFontPreviewField *)field shouldChangeToFont:(NSFont *)font;
- (void)fontPreviewField:(JVFontPreviewField *)field didChangeToFont:(NSFont *)font;
@end
diff -r 42dcf07091ca -r 30077293fc5b Frameworks/Adium Framework/Source/JVFontPreviewField.m
--- a/Frameworks/Adium Framework/Source/JVFontPreviewField.m Sun Mar 13 01:30:08 2011 +0200
+++ b/Frameworks/Adium Framework/Source/JVFontPreviewField.m Mon Mar 14 21:01:04 2011 -0700
@@ -54,16 +54,17 @@
- (void) changeFont:(id) sender {
NSFont *font = [sender convertFont:[self font]];
+ NSObject <NSObject,JVFontPreviewFieldDelegate> *__delegate = (id <NSObject,JVFontPreviewFieldDelegate>)self.delegate;
if (!font) return;
- if ([self.delegate respondsToSelector:@selector(fontPreviewField:shouldChangeToFont:)])
- if (![self.delegate fontPreviewField:self shouldChangeToFont:font]) return;
+ if ([__delegate respondsToSelector:@selector(fontPreviewField:shouldChangeToFont:)])
+ if (![__delegate fontPreviewField:self shouldChangeToFont:font]) return;
[self setFont:font];
- if ([self.delegate respondsToSelector:@selector(fontPreviewField:didChangeToFont:)])
- [self.delegate fontPreviewField:self didChangeToFont:font];
+ if ([__delegate respondsToSelector:@selector(fontPreviewField:didChangeToFont:)])
+ [__delegate fontPreviewField:self didChangeToFont:font];
}
- (NSUInteger) validModesForFontPanel:(NSFontPanel *) fontPanel
diff -r 42dcf07091ca -r 30077293fc5b Frameworks/AutoHyperlinks Framework/Source/AHMarkedHyperlink.m
--- a/Frameworks/AutoHyperlinks Framework/Source/AHMarkedHyperlink.m Sun Mar 13 01:30:08 2011 +0200
+++ b/Frameworks/AutoHyperlinks Framework/Source/AHMarkedHyperlink.m Mon Mar 14 21:01:04 2011 -0700
@@ -104,19 +104,6 @@
if(preString) [preString release];
}
-- (void)setValidationStatus:(AH_URI_VERIFICATION_STATUS)status
-{
- urlStatus = status;
-}
-
-- (void)setParentString:(NSString *)pInString
-{
- if(pString != pInString){
- [pString release];
- pString = [pInString retain];
- }
-}
-
#pragma mark NSCopying
- (id)copyWithZone:(NSZone *)zone
diff -r 42dcf07091ca -r 30077293fc5b Frameworks/AutoHyperlinks Framework/xcconfigs/AutoHyperlinks.xcconfig
--- a/Frameworks/AutoHyperlinks Framework/xcconfigs/AutoHyperlinks.xcconfig Sun Mar 13 01:30:08 2011 +0200
+++ b/Frameworks/AutoHyperlinks Framework/xcconfigs/AutoHyperlinks.xcconfig Mon Mar 14 21:01:04 2011 -0700
@@ -23,7 +23,6 @@
VALID_ARCHS = i386 ppc x86_64
DEBUG_INFORMATION_FORMAT = dwarf
WARNING_CFLAGS = -Wall
-GCC_WARN_64_TO_32_BIT_CONVERSION = YES
GCC_WARN_ABOUT_MISSING_FIELD_INITIALIZERS = YES
GCC_WARN_STRICT_SELECTOR_MATCH = missing value
GCC_WARN_UNDECLARED_SELECTOR = YES
diff -r 42dcf07091ca -r 30077293fc5b Plugins/Bonjour/AWBonjourAccount.m
--- a/Plugins/Bonjour/AWBonjourAccount.m Sun Mar 13 01:30:08 2011 +0200
+++ b/Plugins/Bonjour/AWBonjourAccount.m Mon Mar 14 21:01:04 2011 -0700
@@ -63,7 +63,7 @@
[super initAccount];
libezvContacts = [[NSMutableSet alloc] init];
- libezv = [[AWEzv alloc] initWithClient:self];
+ libezv = [(AWEzv *)[AWEzv alloc] initWithClient:self];
}
- (void)dealloc
diff -r 42dcf07091ca -r 30077293fc5b Plugins/Dual Window Interface/AIMessageWindowController.m
--- a/Plugins/Dual Window Interface/AIMessageWindowController.m Sun Mar 13 01:30:08 2011 +0200
+++ b/Plugins/Dual Window Interface/AIMessageWindowController.m Mon Mar 14 21:01:04 2011 -0700
@@ -1011,13 +1011,13 @@
[transform scaleXBy:1.0f yBy:-1.0f];
[transform concat];
tabFrame.origin.y = -tabFrame.origin.y - tabFrame.size.height;
- [(id <PSMTabStyle>)[[tabView delegate] style] drawBackgroundInRect:tabFrame];
+ [[(PSMTabBarControl *)[tabView delegate] style] drawBackgroundInRect:tabFrame];
[transform invert];
[transform concat];
[viewImage unlockFocus];
- id <PSMTabStyle> style = (id <PSMTabStyle>)[[tabView delegate] style];
+ id <PSMTabStyle> style = [(PSMTabBarControl *)[tabView delegate] style];
switch (tabPosition) {
case AdiumTabPositionBottom:
@@ -1048,7 +1048,7 @@
{
id newController = [interface openNewContainer];
NSRect frame;
- id <PSMTabStyle> style = (id <PSMTabStyle>)[[tabView delegate] style];
+ id <PSMTabStyle> style = [(PSMTabBarControl *)[tabView delegate] style];
//set the size of the new window
//set the size and origin separately so that toolbar visibility and size doesn't mess things up
diff -r 42dcf07091ca -r 30077293fc5b Plugins/Image Uploading Plugin/AIImgurImageUploader.h
--- a/Plugins/Image Uploading Plugin/AIImgurImageUploader.h Sun Mar 13 01:30:08 2011 +0200
+++ b/Plugins/Image Uploading Plugin/AIImgurImageUploader.h Mon Mar 14 21:01:04 2011 -0700
@@ -16,7 +16,7 @@
#import "AIGenericMultipartImageUploader.h"
- at interface AIImgurImageUploader : AIGenericMultipartImageUploader {
+ at interface AIImgurImageUploader : AIGenericMultipartImageUploader <NSXMLParserDelegate>{
NSData *resultData;
NSXMLParser *responseParser;
diff -r 42dcf07091ca -r 30077293fc5b Plugins/Link Management/SHAutoValidatingTextView.h
--- a/Plugins/Link Management/SHAutoValidatingTextView.h Sun Mar 13 01:30:08 2011 +0200
+++ b/Plugins/Link Management/SHAutoValidatingTextView.h Mon Mar 14 21:01:04 2011 -0700
@@ -14,9 +14,10 @@
* write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#import <AIUtilities/AILeopardCompatibility.h>
#import <AutoHyperlinks/AutoHyperlinks.h>
- at interface SHAutoValidatingTextView : NSTextView {
+ at interface SHAutoValidatingTextView : NSTextView <NSTextViewDelegate>{
BOOL continuousURLValidation;
BOOL URLIsValid;
diff -r 42dcf07091ca -r 30077293fc5b Plugins/Purple Service/AMPurpleSearchResultsController.h
--- a/Plugins/Purple Service/AMPurpleSearchResultsController.h Sun Mar 13 01:30:08 2011 +0200
+++ b/Plugins/Purple Service/AMPurpleSearchResultsController.h Mon Mar 14 21:01:04 2011 -0700
@@ -17,7 +17,7 @@
#import "ESPurpleRequestAbstractWindowController.h"
#import <AdiumLibpurple/PurpleCommon.h>
- at interface AMPurpleSearchResultsController : ESPurpleRequestAbstractWindowController {
+ at interface AMPurpleSearchResultsController : ESPurpleRequestAbstractWindowController <NSTableViewDelegate>{
IBOutlet NSTextField *textfield_primary;
IBOutlet NSTextField *textfield_secondary;
IBOutlet NSTableView *tableview;
diff -r 42dcf07091ca -r 30077293fc5b Plugins/Purple Service/adiumPurpleRequest.m
--- a/Plugins/Purple Service/adiumPurpleRequest.m Sun Mar 13 01:30:08 2011 +0200
+++ b/Plugins/Purple Service/adiumPurpleRequest.m Mon Mar 14 21:01:04 2011 -0700
@@ -340,16 +340,18 @@
if (savedialog) {
NSSavePanel *savePanel = [NSSavePanel savePanel];
if ([titleString length]) [savePanel setTitle:titleString];
+ [savePanel setAllowedFileTypes:nil];
- if ([savePanel runModalForDirectory:nil file:nil] == NSOKButton) {
- ((PurpleRequestFileCb)ok_cb)(user_data, [[savePanel filename] UTF8String]);
+ if ([savePanel runModal] == NSOKButton) {
+ ((PurpleRequestFileCb)ok_cb)(user_data, [[[savePanel URL] path] UTF8String]);
}
} else {
NSOpenPanel *openPanel = [NSOpenPanel openPanel];
if ([titleString length]) [openPanel setTitle:titleString];
+ [openPanel setAllowedFileTypes:nil];
- if ([openPanel runModalForDirectory:nil file:nil types:nil] == NSOKButton) {
- ((PurpleRequestFileCb)ok_cb)(user_data, [[openPanel filename] UTF8String]);
+ if ([openPanel runModal] == NSOKButton) {
+ ((PurpleRequestFileCb)ok_cb)(user_data, [[[openPanel URL] path] UTF8String]);
}
}
} else {
diff -r 42dcf07091ca -r 30077293fc5b Plugins/WebKit Message View/AIWebKitDelegate.h
--- a/Plugins/WebKit Message View/AIWebKitDelegate.h Sun Mar 13 01:30:08 2011 +0200
+++ b/Plugins/WebKit Message View/AIWebKitDelegate.h Mon Mar 14 21:01:04 2011 -0700
@@ -14,6 +14,7 @@
* write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#import <AIUtilities/AILeopardCompatibility.h>
#import <WebKit/WebKit.h>
@class ESWebView;
@@ -22,7 +23,7 @@
@class AIWebKitMessageViewController;
- at interface AIWebKitDelegate : NSObject {
+ at interface AIWebKitDelegate : NSObject <NSDraggingDestination>{
NSMutableDictionary *mapping;
}
diff -r 42dcf07091ca -r 30077293fc5b Plugins/WebKit Message View/AIWebKitMessageViewController.h
--- a/Plugins/WebKit Message View/AIWebKitMessageViewController.h Sun Mar 13 01:30:08 2011 +0200
+++ b/Plugins/WebKit Message View/AIWebKitMessageViewController.h Mon Mar 14 21:01:04 2011 -0700
@@ -14,6 +14,7 @@
* write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#import <AIUtilities/AILeopardCompatibility.h>
#import <Adium/AIInterfaceControllerProtocol.h>
@class AIWebKitMessageViewPlugin, AIWebkitMessageViewStyle, AIContentObject, ESWebView, DOMDocument, DOMRange, AIMetaContact, AIChat, AIContentObject, AIWebKitDelegate;
@@ -22,7 +23,7 @@
* @class AIWebKitMessageViewController AIWebKitMessageViewController.h
* @brief Main class for the webkit message view. Most of the good stuff happens here
*/
- at interface AIWebKitMessageViewController : NSObject <AIMessageDisplayController> {
+ at interface AIWebKitMessageViewController : NSObject <AIMessageDisplayController,NSDraggingDestination> {
AIWebKitDelegate *delegateProxy;
id plugin;
diff -r 42dcf07091ca -r 30077293fc5b Plugins/WebKit Message View/AIWebKitMessageViewPlugin.m
--- a/Plugins/WebKit Message View/AIWebKitMessageViewPlugin.m Sun Mar 13 01:30:08 2011 +0200
+++ b/Plugins/WebKit Message View/AIWebKitMessageViewPlugin.m Mon Mar 14 21:01:04 2011 -0700
@@ -218,8 +218,8 @@
}
if (thisStyle) {
- NSDictionary *fileAttrs = [[NSFileManager defaultManager] fileAttributesAtPath:[[*thisStyle bundle] bundlePath]
- traverseLink:YES];
+ NSDictionary *fileAttrs = [[NSFileManager defaultManager] attributesOfItemAtPath:[[*thisStyle bundle] bundlePath]
+ error:NULL];
NSDate *modDate = [fileAttrs objectForKey:NSFileModificationDate];
if (lastStyleLoadDate && [modDate timeIntervalSinceDate:lastStyleLoadDate] > 0) {
[currentGroupStyle reloadStyle];
diff -r 42dcf07091ca -r 30077293fc5b Source/AIBorderlessListController.m
--- a/Source/AIBorderlessListController.m Sun Mar 13 01:30:08 2011 +0200
+++ b/Source/AIBorderlessListController.m Mon Mar 14 21:01:04 2011 -0700
@@ -21,7 +21,7 @@
@synthesize enableEmptyListHiding;
-- (id)initWithContactList:(AIListObject<AIContainingObject> *)aContactList
+- (id)initWithContactList:(id<AIContainingObject>)aContactList
inOutlineView:(AIListOutlineView *)inContactListView
inScrollView:(AIAutoScrollView *)inScrollView_contactList
delegate:(id<AIListControllerDelegate>)inDelegate
diff -r 42dcf07091ca -r 30077293fc5b Source/AIContactController.m
--- a/Source/AIContactController.m Sun Mar 13 01:30:08 2011 +0200
+++ b/Source/AIContactController.m Mon Mar 14 21:01:04 2011 -0700
@@ -100,7 +100,7 @@
@property (readwrite, nonatomic) BOOL useOfflineGroup;
- (void)saveContactList;
- (void)_loadBookmarks;
-- (void)_didChangeContainer:(AIListObject<AIContainingObject> *)inContainingObject object:(AIListObject *)object;
+- (void)_didChangeContainer:(id <AIContainingObject>)inContainingObject object:(AIListObject *)object;
- (void)prepareShowHideGroups;
- (void)_performChangeOfUseContactListGroups;
- (void)didSendContent:(NSNotification *)notification;
@@ -283,7 +283,7 @@
#pragma mark Contact Grouping
-- (void)_addContactLocally:(AIListContact *)listContact toGroup:(AIListObject<AIContainingObject> *)localGroup
+- (void)_addContactLocally:(AIListContact *)listContact toGroup:(id<AIContainingObject>)localGroup
{
BOOL performedGrouping = NO;
@@ -351,12 +351,12 @@
#endif
//Remove this object from any local groups we have it in currently
- for (AIListObject<AIContainingObject> *group in oldGroups) {
+ for (id<AIContainingObject> group in oldGroups) {
[group removeObject:listContact];
[self _didChangeContainer:group object:listContact];
}
- for (AIListObject<AIContainingObject> *group in groups)
+ for (id<AIContainingObject> group in groups)
[self _addContactLocally:listContact toGroup:group];
[contactPropertiesObserverManager endListObjectNotificationsDelay];
@@ -366,7 +366,7 @@
}
//Post a list grouping changed notification for the object and containing object
-- (void)_didChangeContainer:(AIListObject<AIContainingObject> *)inContainingObject object:(AIListObject *)object
+- (void)_didChangeContainer:(id<AIContainingObject>)inContainingObject object:(AIListObject *)object
{
if ([contactPropertiesObserverManager shouldDelayUpdates]) {
[contactPropertiesObserverManager noteContactChanged:object];
@@ -577,8 +577,8 @@
//If listObject contains other contacts, perform addContact:toMetaContact: recursively
if ([inContact conformsToProtocol:@protocol(AIContainingObject)]) {
- AILogWithSignature(@"Adding recursively (%@)", ((AIListObject<AIContainingObject> *)inContact).containedObjects);
- for (AIListContact *someObject in ((AIListObject<AIContainingObject> *)inContact).containedObjects) {
+ AILogWithSignature(@"Adding recursively (%@)", ((id<AIContainingObject>)inContact).containedObjects);
+ for (AIListContact *someObject in ((id<AIContainingObject>)inContact).containedObjects) {
[self addContact:someObject toMetaContact:metaContact];
}
@@ -1102,7 +1102,7 @@
}
//Return a flat array of all the objects in a group on an account (and all subgroups, if desired)
-- (NSArray *)allContactsInObject:(AIListObject<AIContainingObject> *)inGroup onAccount:(AIAccount *)inAccount
+- (NSArray *)allContactsInObject:(id<AIContainingObject>)inGroup onAccount:(AIAccount *)inAccount
{
NSParameterAssert(inGroup != nil);
@@ -1110,7 +1110,7 @@
for (AIListObject *object in inGroup) {
if ([object conformsToProtocol:@protocol(AIContainingObject)]) {
- [contactArray addObjectsFromArray:[self allContactsInObject:(AIListObject<AIContainingObject> *)object
+ [contactArray addObjectsFromArray:[self allContactsInObject:(id<AIContainingObject>)object
onAccount:inAccount]];
} else if ([object isMemberOfClass:[AIListContact class]] && (!inAccount || ([(AIListContact *)object account] == inAccount)))
[contactArray addObject:object];
@@ -1241,7 +1241,7 @@
{
[[inContact retain] autorelease];
- for (AIListObject<AIContainingObject> *container in inContact.containingObjects) {
+ for (id<AIContainingObject> container in inContact.containingObjects) {
[container removeObjectAfterAccountStopsTracking:inContact];
}
diff -r 42dcf07091ca -r 30077293fc5b Source/AIListController.h
--- a/Source/AIListController.h Sun Mar 13 01:30:08 2011 +0200
+++ b/Source/AIListController.h Mon Mar 14 21:01:04 2011 -0700
@@ -38,12 +38,12 @@
BOOL needsAutoResize;
}
-- (id)initWithContactList:(AIListObject<AIContainingObject> *)aContactList
+- (id)initWithContactList:(id<AIContainingObject>)aContactList
inOutlineView:(AIListOutlineView *)inContactListView
inScrollView:(AIAutoScrollView *)inScrollView_contactList
delegate:(id<AIListControllerDelegate>)inDelegate;
-- (AIListObject<AIContainingObject> *) contactList;
+- (id<AIContainingObject>) contactList;
//Call to close down and release the listController
- (void)close;
diff -r 42dcf07091ca -r 30077293fc5b Source/AIListController.m
--- a/Source/AIListController.m Sun Mar 13 01:30:08 2011 +0200
+++ b/Source/AIListController.m Mon Mar 14 21:01:04 2011 -0700
@@ -62,7 +62,7 @@
@implementation AIListController
-- (id)initWithContactList:(AIListObject<AIContainingObject> *)aContactList
+- (id)initWithContactList:(id<AIContainingObject>)aContactList
inOutlineView:(AIListOutlineView *)inContactListView
inScrollView:(AIAutoScrollView *)inScrollView_contactList
delegate:(id<AIListControllerDelegate>)inDelegate
@@ -409,9 +409,9 @@
//Content Updating -----------------------------------------------------------------------------------------------------
#pragma mark Content Updating
-- (AIListObject<AIContainingObject> *)contactList
+- (id<AIContainingObject>)contactList
{
- return (AIListObject<AIContainingObject> *)contactList;
+ return (id<AIContainingObject>)contactList;
}
- (void)reloadListObject:(NSNotification *)notification
diff -r 42dcf07091ca -r 30077293fc5b Source/AIListLayoutWindowController.h
--- a/Source/AIListLayoutWindowController.h Sun Mar 13 01:30:08 2011 +0200
+++ b/Source/AIListLayoutWindowController.h Mon Mar 14 21:01:04 2011 -0700
@@ -15,10 +15,9 @@
*/
#import <Adium/AIWindowController.h>
+#import <Adium/JVFontPreviewField.h>
- at class JVFontPreviewField, JVFontPreviewField;
-
- at interface AIListLayoutWindowController : AIWindowController {
+ at interface AIListLayoutWindowController : AIWindowController <JVFontPreviewFieldDelegate> {
IBOutlet NSPopUpButton *popUp_contactTextAlignment;
IBOutlet NSPopUpButton *popUp_groupTextAlignment;
IBOutlet NSPopUpButton *popUp_extendedStatusStyle;
diff -r 42dcf07091ca -r 30077293fc5b Source/AIListThemeWindowController.m
--- a/Source/AIListThemeWindowController.m Sun Mar 13 01:30:08 2011 +0200
+++ b/Source/AIListThemeWindowController.m Mon Mar 14 21:01:04 2011 -0700
@@ -457,12 +457,14 @@
{
NSOpenPanel *openPanel = [NSOpenPanel openPanel];
[openPanel setTitle:@"Background Image"];
-
- if ([openPanel runModalForDirectory:nil file:nil types:[NSImage imageFileTypes]] == NSOKButton) {
- [adium.preferenceController setPreference:[openPanel filename]
+ [openPanel setAllowedFileTypes:[NSImage imageFileTypes]];
+
+ if ([openPanel runModal] == NSOKButton) {
+ NSString *filename = [[openPanel URL] path];
+ [adium.preferenceController setPreference:filename
forKey:KEY_LIST_THEME_BACKGROUND_IMAGE_PATH
group:PREF_GROUP_LIST_THEME];
- if ([openPanel filename]) [textField_backgroundImagePath setStringValue:[openPanel filename]];
+ if (filename) [textField_backgroundImagePath setStringValue:filename];
}
}
diff -r 42dcf07091ca -r 30077293fc5b Source/AIListWindowController.h
--- a/Source/AIListWindowController.h Sun Mar 13 01:30:08 2011 +0200
+++ b/Source/AIListWindowController.h Mon Mar 14 21:01:04 2011 -0700
@@ -102,12 +102,12 @@
}
// Create additional windows
-+ (AIListWindowController *)listWindowControllerForContactList:(AIListObject<AIContainingObject> *)contactList;
++ (AIListWindowController *)listWindowControllerForContactList:(id<AIContainingObject>)contactList;
- (AIListController *)listController;
- (AIListOutlineView *)contactListView;
-- (AIListObject<AIContainingObject> *) contactList;
-- (void)setContactList:(AIListObject<AIContainingObject> *)contactList;
+- (id<AIContainingObject>) contactList;
+- (void)setContactList:(id<AIContainingObject>)contactList;
- (void)close:(id)sender;
// Dock-like hiding
diff -r 42dcf07091ca -r 30077293fc5b Source/AIListWindowController.m
--- a/Source/AIListWindowController.m Sun Mar 13 01:30:08 2011 +0200
+++ b/Source/AIListWindowController.m Mon Mar 14 21:01:04 2011 -0700
@@ -54,7 +54,7 @@
#define SNAP_DISTANCE 15.0f /* Distance beween one window's edge and another's at which they should snap together */
@interface AIListWindowController ()
-- (id)initWithContactList:(AIListObject<AIContainingObject> *)contactList;
+- (id)initWithContactList:(id<AIContainingObject>)contactList;
+ (NSString *)nibName;
+ (void)updateScreenSlideBoundaryRect:(id)sender;
- (BOOL)shouldSlideWindowOffScreen_mousePositionStrategy;
@@ -87,12 +87,12 @@
}
}
-+ (AIListWindowController *)listWindowControllerForContactList:(AIListObject<AIContainingObject> *)contactList
++ (AIListWindowController *)listWindowControllerForContactList:(id<AIContainingObject>)contactList
{
return [[[self alloc] initWithContactList:contactList] autorelease];
}
-- (id)initWithContactList:(AIListObject<AIContainingObject> *)contactList
+- (id)initWithContactList:(id<AIContainingObject>)contactList
{
if ((self = [self initWithWindowNibName:[[self class] nibName]])) {
preventHiding = NO;
@@ -107,7 +107,7 @@
return self;
}
-- (AIListObject<AIContainingObject> *)contactList
+- (id<AIContainingObject> )contactList
{
return (contactListRoot ? contactListRoot : [contactListController contactList]);
}
@@ -122,7 +122,7 @@
return contactListView;
}
-- (void)setContactList:(AIListObject<AIContainingObject> *)inContactList
+- (void)setContactList:(id<AIContainingObject>)inContactList
{
if (inContactList != contactListRoot) {
[contactListRoot release];
diff -r 42dcf07091ca -r 30077293fc5b Source/AIOutlineViewAnimation.m
--- a/Source/AIOutlineViewAnimation.m Sun Mar 13 01:30:08 2011 +0200
+++ b/Source/AIOutlineViewAnimation.m Mon Mar 14 21:01:04 2011 -0700
@@ -73,7 +73,7 @@
{
[super setCurrentProgress:progress];
- [self.delegate animation:self didSetCurrentValue:[self currentValue] forDict:dict];
+ [(AIAnimatingListOutlineView *)self.delegate animation:self didSetCurrentValue:[self currentValue] forDict:dict];
}
@end
diff -r 42dcf07091ca -r 30077293fc5b Source/AIXtrasManager.m
--- a/Source/AIXtrasManager.m Sun Mar 13 01:30:08 2011 +0200
+++ b/Source/AIXtrasManager.m Mon Mar 14 21:01:04 2011 -0700
@@ -428,8 +428,8 @@
if (tableView == tableView_categories) {
return [[categories objectAtIndex:row] objectForKey:@"Name"];
} else {
- NSString * name = [[selectedCategory objectAtIndex:row] name];
- NSString * version = [[selectedCategory objectAtIndex:row] version];
+ NSString * name = [(AIXtraInfo *)[selectedCategory objectAtIndex:row] name];
+ NSString * version = [(AIXtraInfo *)[selectedCategory objectAtIndex:row] version];
NSString * displayString;
if (name) {
diff -r 42dcf07091ca -r 30077293fc5b Source/AdiumSetupWizard.h
--- a/Source/AdiumSetupWizard.h Sun Mar 13 01:30:08 2011 +0200
+++ b/Source/AdiumSetupWizard.h Mon Mar 14 21:01:04 2011 -0700
@@ -14,11 +14,12 @@
* write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+#import <AIUtilities/AILeopardCompatibility.h>
#import <Adium/AIWindowController.h>
@class SetupWizardBackgroundView;
- at interface AdiumSetupWizard : AIWindowController {
+ at interface AdiumSetupWizard : AIWindowController <NSTabViewDelegate> {
IBOutlet SetupWizardBackgroundView *backgroundView;
IBOutlet NSButton *button_continue;
diff -r 42dcf07091ca -r 30077293fc5b Source/ESEventSoundAlertDetailPane.m
--- a/Source/ESEventSoundAlertDetailPane.m Sun Mar 13 01:30:08 2011 +0200
+++ b/Source/ESEventSoundAlertDetailPane.m Mon Mar 14 21:01:04 2011 -0700
@@ -262,7 +262,7 @@
- (void)concludeOtherPanel:(NSOpenPanel *)panel returnCode:(NSInteger)returnCode contextInfo:(void *)contextInfo
{
if (returnCode == NSOKButton) {
- NSString *soundPath = [[panel filenames] objectAtIndex:0];
+ NSString *soundPath = [(NSURL *)[[panel URLs] objectAtIndex:0] path];
[adium.soundController playSoundAtPath:soundPath]; //Play the sound
diff -r 42dcf07091ca -r 30077293fc5b Source/ESPanelApplescriptDetailPane.m
--- a/Source/ESPanelApplescriptDetailPane.m Sun Mar 13 01:30:08 2011 +0200
+++ b/Source/ESPanelApplescriptDetailPane.m Mon Mar 14 21:01:04 2011 -0700
@@ -86,11 +86,10 @@
{
NSOpenPanel *openPanel = [NSOpenPanel openPanel];
[openPanel setTitle:AILocalizedString(@"Select an AppleScript",nil)];
+ [openPanel setAllowedFileTypes:[NSArray arrayWithObjects:@"applescript",@"scptd",@"scpt",nil]];
- if ([openPanel runModalForDirectory:nil
- file:nil
- types:[NSArray arrayWithObjects:@"applescript",@"scptd",@"scpt",nil]] == NSOKButton) {
- [self setScriptPath:[openPanel filename]];
+ if ([openPanel runModal] == NSOKButton) {
+ [self setScriptPath:[[openPanel URL] path]];
}
}
More information about the commits
mailing list