Mercurial > projects > dwt-mac
comparison dwt/internal/cocoa/NSSearchField.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 |
comparison
equal
deleted
inserted
replaced
0:380af2bdd8e5 | 1:8b48be5454ce |
---|---|
32 super(id); | 32 super(id); |
33 } | 33 } |
34 | 34 |
35 public NSArray recentSearches () | 35 public NSArray recentSearches () |
36 { | 36 { |
37 objc.id result = OS.objc_msgSend(this.id, OS.sel_recentSearches); | 37 objc.id result = OS.objc_msgSend(this.id_, OS.sel_recentSearches); |
38 return result !is null ? new NSArray(result) : null; | 38 return result !is null ? new NSArray(result) : null; |
39 } | 39 } |
40 | 40 |
41 public NSString recentsAutosaveName () | 41 public NSString recentsAutosaveName () |
42 { | 42 { |
43 objc.id result = OS.objc_msgSend(this.id, OS.sel_recentsAutosaveName); | 43 objc.id result = OS.objc_msgSend(this.id_, OS.sel_recentsAutosaveName); |
44 return result !is null ? new NSString(result) : null; | 44 return result !is null ? new NSString(result) : null; |
45 } | 45 } |
46 | 46 |
47 public void setRecentSearches (NSArray searches) | 47 public void setRecentSearches (NSArray searches) |
48 { | 48 { |
49 OS.objc_msgSend(this.id, OS.sel_setRecentSearches_1, searches !is null ? searches.id : null); | 49 OS.objc_msgSend(this.id_, OS.sel_setRecentSearches_1, searches !is null ? searches.id_ : null); |
50 } | 50 } |
51 | 51 |
52 public void setRecentsAutosaveName (NSString string) | 52 public void setRecentsAutosaveName (NSString string) |
53 { | 53 { |
54 OS.objc_msgSend(this.id, OS.sel_setRecentsAutosaveName_1, string !is null ? string.id : null); | 54 OS.objc_msgSend(this.id_, OS.sel_setRecentsAutosaveName_1, string !is null ? string.id_ : null); |
55 } | 55 } |
56 | 56 |
57 } | 57 } |