diff dwt/internal/cocoa/NSMetadataQuery.d @ 1:8b48be5454ce

The internal cocoa classes compile now
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Tue, 19 Aug 2008 17:35:17 +0200
parents 380af2bdd8e5
children f565d3a95c0a
line wrap: on
line diff
--- a/dwt/internal/cocoa/NSMetadataQuery.d	Sat Aug 09 17:00:02 2008 +0200
+++ b/dwt/internal/cocoa/NSMetadataQuery.d	Tue Aug 19 17:35:17 2008 +0200
@@ -39,152 +39,152 @@
 
     public id delegatee ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_delegate);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_delegate);
         return result !is null ? new id(result) : null;
     }
 
     public void disableUpdates ()
     {
-        OS.objc_msgSend(this.id, OS.sel_disableUpdates);
+        OS.objc_msgSend(this.id_, OS.sel_disableUpdates);
     }
 
     public void enableUpdates ()
     {
-        OS.objc_msgSend(this.id, OS.sel_enableUpdates);
+        OS.objc_msgSend(this.id_, OS.sel_enableUpdates);
     }
 
     public NSArray groupedResults ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_groupedResults);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_groupedResults);
         return result !is null ? new NSArray(result) : null;
     }
 
     public NSArray groupingAttributes ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_groupingAttributes);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_groupingAttributes);
         return result !is null ? new NSArray(result) : null;
     }
 
     public NSUInteger indexOfResult (id result)
     {
-        return OS.objc_msgSend(this.id, OS.sel_indexOfResult_1, result !is null ? result.id : null);
+        return cast(NSUInteger) OS.objc_msgSend(this.id_, OS.sel_indexOfResult_1, result !is null ? result.id_ : null);
     }
 
     public bool isGathering ()
     {
-        return OS.objc_msgSend(this.id, OS.sel_isGathering) !is null;
+        return OS.objc_msgSend(this.id_, OS.sel_isGathering) !is null;
     }
 
     public bool isStarted ()
     {
-        return OS.objc_msgSend(this.id, OS.sel_isStarted) !is null;
+        return OS.objc_msgSend(this.id_, OS.sel_isStarted) !is null;
     }
 
     public bool isStopped ()
     {
-        return OS.objc_msgSend(this.id, OS.sel_isStopped) !is null;
+        return OS.objc_msgSend(this.id_, OS.sel_isStopped) !is null;
     }
 
     public NSTimeInterval notificationBatchingInterval ()
     {
-        return OS.objc_msgSend_fpret(this.id, OS.sel_notificationBatchingInterval);
+        return cast(NSTimeInterval) OS.objc_msgSend_fpret(this.id_, OS.sel_notificationBatchingInterval);
     }
 
     public NSPredicate predicate ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_predicate);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_predicate);
         return result !is null ? new NSPredicate(result) : null;
     }
 
     public id resultAtIndex (NSUInteger idx)
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_resultAtIndex_1, idx);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_resultAtIndex_1, idx);
         return result !is null ? new id(result) : null;
     }
 
     public objc.id resultCount ()
     {
-        return OS.objc_msgSend(this.id, OS.sel_resultCount);
+        return OS.objc_msgSend(this.id_, OS.sel_resultCount);
     }
 
     public NSArray results ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_results);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_results);
         return result !is null ? new NSArray(result) : null;
     }
 
     public NSArray searchScopes ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_searchScopes);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_searchScopes);
         return result !is null ? new NSArray(result) : null;
     }
 
     public void setDelegate (id delegatee)
     {
-        OS.objc_msgSend(this.id, OS.sel_setDelegate_1, delegatee !is null ? delegatee.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_setDelegate_1, delegatee !is null ? delegatee.id_ : null);
     }
 
     public void setGroupingAttributes (NSArray attrs)
     {
-        OS.objc_msgSend(this.id, OS.sel_setGroupingAttributes_1, attrs !is null ? attrs.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_setGroupingAttributes_1, attrs !is null ? attrs.id_ : null);
     }
 
     public void setNotificationBatchingInterval (NSTimeInterval ti)
     {
-        OS.objc_msgSend(this.id, OS.sel_setNotificationBatchingInterval_1, ti);
+        OS.objc_msgSend(this.id_, OS.sel_setNotificationBatchingInterval_1, ti);
     }
 
     public void setPredicate (NSPredicate predicate)
     {
-        OS.objc_msgSend(this.id, OS.sel_setPredicate_1, predicate !is null ? predicate.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_setPredicate_1, predicate !is null ? predicate.id_ : null);
     }
 
     public void setSearchScopes (NSArray scopes)
     {
-        OS.objc_msgSend(this.id, OS.sel_setSearchScopes_1, scopes !is null ? scopes.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_setSearchScopes_1, scopes !is null ? scopes.id_ : null);
     }
 
     public void setSortDescriptors (NSArray descriptors)
     {
-        OS.objc_msgSend(this.id, OS.sel_setSortDescriptors_1, descriptors !is null ? descriptors.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_setSortDescriptors_1, descriptors !is null ? descriptors.id_ : null);
     }
 
     public void setValueListAttributes (NSArray attrs)
     {
-        OS.objc_msgSend(this.id, OS.sel_setValueListAttributes_1, attrs !is null ? attrs.id : null);
+        OS.objc_msgSend(this.id_, OS.sel_setValueListAttributes_1, attrs !is null ? attrs.id_ : null);
     }
 
     public NSArray sortDescriptors ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_sortDescriptors);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_sortDescriptors);
         return result !is null ? new NSArray(result) : null;
     }
 
     public bool startQuery ()
     {
-        return OS.objc_msgSend(this.id, OS.sel_startQuery) !is null;
+        return OS.objc_msgSend(this.id_, OS.sel_startQuery) !is null;
     }
 
     public void stopQuery ()
     {
-        OS.objc_msgSend(this.id, OS.sel_stopQuery);
+        OS.objc_msgSend(this.id_, OS.sel_stopQuery);
     }
 
     public NSArray valueListAttributes ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_valueListAttributes);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_valueListAttributes);
         return result !is null ? new NSArray(result) : null;
     }
 
     public NSDictionary valueLists ()
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_valueLists);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_valueLists);
         return result !is null ? new NSDictionary(result) : null;
     }
 
     public id valueOfAttribute (NSString attrName, NSUInteger idx)
     {
-        objc.id result = OS.objc_msgSend(this.id, OS.sel_valueOfAttribute_1forResultAtIndex_1, attrName !is null ? attrName.id : null, idx);
+        objc.id result = OS.objc_msgSend(this.id_, OS.sel_valueOfAttribute_1forResultAtIndex_1, attrName !is null ? attrName.id_ : null, idx);
         return result !is null ? new id(result) : null;
     }