A link to Dr. Geo web page

Bug #1024651 reported by hilaire
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Dr. Geo
Fix Released
High
Esteban Lorenzano

Bug Description

The Dr. Geo world menu should provide a link to the Dr. Geo web site.

Tags: android ipad
Changed in drgeo:
milestone: 12.10 → none
Changed in drgeo:
milestone: none → 12.12
importance: Undecided → High
assignee: Hilaire Fernandes (hilaire-fernandes) → Esteban Lorenzano (estebanlm)
tags: added: android ipad
Revision history for this message
hilaire (hilaire-fernandes) wrote :

Done for Android version.

Revision history for this message
Esteban Lorenzano (estebanlm) wrote :

Ok, finally I'm having time to look at this... I suppose you refer here to add an option that opens the browser pointing to someplace, isn't?

in iOS, we do not have a primitive for that (thought I can add one to IOSPlugin), but you better do this in your application:

(ObjectiveCBridge classObjectForName: #UIApplication) sharedApplication
  openURL: ((ObjectiveCBridge classObjectForName: #NSURL) URLWithString: 'http://www.drgeo.eu' asNSStringUTF8).

let me know if this is what you were looking for.

Revision history for this message
hilaire (hilaire-fernandes) wrote : Re: [Bug 1024651] Re: A link to Dr. Geo web page

I convert it in a portable code as below, Does it look correct for you ? :

openURI: aString
    | sharedApp nsUrl nsStringUTF8 urlWithString |
    sharedApp := ((Smalltalk at: #ObjectiveCBridge) perform:
#classObjectForName: with: #UIApplication) perform: #sharedApplication.
    nsUrl := (Smalltalk at: #ObjectiveCBridge) perform:
#classObjectForName: with: #NSURL.
    nsStringUTF8 := aString perform: #asNSStringUTF8.
    urlWithString := nsUrl perform: #URLWithString: with: nsStringUTF8.
    sharedApp perform: #openURL with: urlWithString.

    "(ObjectiveCBridge classObjectForName: #UIApplication)
sharedApplication
        openURL: ((ObjectiveCBridge classObjectForName: #NSURL)
URLWithString: 'http://www.drgeo.eu' asNSStringUTF8)"

Le 29/01/2013 16:54, Esteban Lorenzano a écrit :
> (ObjectiveCBridge classObjectForName: #UIApplication) sharedApplication
> openURL: ((ObjectiveCBridge classObjectForName: #NSURL) URLWithString: 'http://www.drgeo.eu' asNSStringUTF8)

--
Dr. Geo - http://drgeo.eu

Changed in drgeo:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.