diff options
author | Max <post@wickenrode.com> | 2014-12-13 17:20:18 +0100 |
---|---|---|
committer | Max <post@wickenrode.com> | 2014-12-13 17:20:18 +0100 |
commit | 994057ae2a82dc110a385ced4239ce49cc0601f8 (patch) | |
tree | d874e74e189f14eb1044daad31df88ec562776d2 /Source/SPTextView.m | |
parent | 3cf0254e55d558565775e6cb20d36ea7e54beca1 (diff) | |
download | sequelpro-994057ae2a82dc110a385ced4239ce49cc0601f8.tar.gz sequelpro-994057ae2a82dc110a385ced4239ce49cc0601f8.tar.bz2 sequelpro-994057ae2a82dc110a385ced4239ce49cc0601f8.zip |
Add cast for [NSApp delegate]
* (Also changed some outdated URLs)
* Replaced [NSApplication sharedApplication] with NSApp
Diffstat (limited to 'Source/SPTextView.m')
-rw-r--r-- | Source/SPTextView.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPTextView.m b/Source/SPTextView.m index abe89c5b..523a7ade 100644 --- a/Source/SPTextView.m +++ b/Source/SPTextView.m @@ -3125,7 +3125,7 @@ static inline NSPoint SPPointOnLine(NSPoint a, NSPoint b, CGFloat t) { return NS } #ifndef SP_CODA - [[NSApp delegate] reloadBundles:self]; + [SPAppDelegate reloadBundles:self]; // Remove 'Bundles' sub menu and separator NSMenuItem *bItem = [menu itemWithTag:10000000]; @@ -3135,8 +3135,8 @@ static inline NSPoint SPPointOnLine(NSPoint a, NSPoint b, CGFloat t) { return NS [menu removeItem:bItem]; } - NSArray *bundleCategories = [[NSApp delegate] bundleCategoriesForScope:SPBundleScopeInputField]; - NSArray *bundleItems = [[NSApp delegate] bundleItemsForScope:SPBundleScopeInputField]; + NSArray *bundleCategories = [SPAppDelegate bundleCategoriesForScope:SPBundleScopeInputField]; + NSArray *bundleItems = [SPAppDelegate bundleItemsForScope:SPBundleScopeInputField]; // Add 'Bundles' sub menu for custom query editor only so far if bundles with scope 'editor' were found if(customQueryInstance && bundleItems && [bundleItems count]) { |