Re: SWI-Prolog MacOS app

Jan Wielemaker <[email protected]>
Newsgroups gmane.comp.ai.prolog.swi
Message-ID <[email protected]>
On 08/16/2013 03:00 PM, Abdallah, Samer wrote:
>
> On 16 Aug 2013, at 13:16, Jan Wielemaker <[email protected]>
>   wrote:
>
> My previous comments notwithstanding, if there must be an
> Mac OS app, then :-

No worries.  swipl[.exe] will stay as it is.  The app does allow
you to install it anywhere or run it directly from the disk
image.  Just add the Apps Contents/MacOS dir to your $PATH and
your are done.  With the advantage that you do not need admin
rights and don't even need to install it.

>> A real Prolog MacOS app is getting close to testing phase.  One of
>> the remaining issues is integration with the finder.  Below are
>> some thoughts about that.  Comments from Mac users is welcome.
>>
>>   - Currently, I register Prolog for .pl and .prolog files (still need
>>     to figure out how to get an icon there).   More?
>>
>>   - Double clicking always sends a message to the already running app,
>>     while I think you want to load the file into a new instance.  So,
>>     if a running app gets a file-open-event, it now runs
>>
>> 	open -n -a <myself> <file>
>>
>>     Does that make sense?
>
> Generally, multiple instances are the not the Mac OS way of
> doing things. I think the standard behaviour would be keep
> just one instance, open a new window or a new tab with the new
> file source, and optionally consult the file. There could be a
> preference: "automatically consult opened source files".
> There could also be a 'consult', 'reconsult', or 'use as module'
> button' on each editor window/tab.

See my response to Paulo.

>>   - What if you just start Prolog from the Applications folder, it
>>     now starts in this directory.  That is most likely not what you
>>     want.  In Windows it creates a Prolog directory under the
>>     `personal' folder and starts there.  Is there a similar convention
>>     for the Mac?
>
> I think that on the whole, GUI apps should not rely on the
> concept of a 'current directory', but if the Prolog engine requires
> one, it should/could be (a) the user's home directory, (b) some
> other user selectable default, or  � the directory of the last loaded
> file. Again, there could be a 'move to parent directory' action on
> a source file window.

A notion of a working directory is there anyway.  I give some of this
a thought.

	Thanks --- Jan

_______________________________________________
SWI-Prolog mailing list
[email protected]
https://lists.iai.uni-bonn.de/mailman/listinfo.cgi/swi-prolog
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.