Skip to content

Commit

Permalink
Fix the Finder activation so it works, and points to the snippets tex…
Browse files Browse the repository at this point in the history
…t file.
  • Loading branch information
cyberfox committed Jul 18, 2016
1 parent dddd10c commit f5032c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/app_delegate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ def ask
end

def prep_log(file = File.join(@snippet_path, 'snippets.txt'))
@logfile = file
@snippets ||= open(file, 'ab')
log('[Starting up (rubymotion)]')
end
Expand Down Expand Up @@ -91,7 +92,7 @@ def buildWindow
end

def finderView
files = [@snippet_path]
NSWorkspace.sharedWorkspace.activateFileViewerSelectingURLs:files
files = [NSURL.fileURLWithPath(@logfile)]
NSWorkspace.sharedWorkspace.activateFileViewerSelectingURLs(files)
end
end

0 comments on commit f5032c0

Please sign in to comment.