Re: scriptability of button in interface?

2010-05-21 Thread Dan Ribe
Hi All,

I am working on to make my cocoa application scriptable. I want to automate
the testing of my application and for that I want all the actions which user
can performs manually to be scriptable. Like apple script should be able to
open a dialog, type something in the text box (or any other UI element),
then save (or perform any action with that dialog as we do manually). I am
facing some problems with this and not able to make it work using apple
script.

Can someone please point me to the documentation or tutorial which show how
to make the UI actions scriptable for cocoa applications.

Thanks a lot for your help.
Cheers!


On Sat, May 3, 2008 at 4:37 PM, Uli Kusterer
witness.of.teacht...@gmx.netwrote:

 Am 03.05.2008 um 12:09 schrieb Patrick J. Collins:

  I am assuming there is something in interface builder that you need to do
 to
 accomplish this, but I just don't know what it is.



  No, not in IB. AppleScript in general doesn't script the UI, but rather
 what is the controller layer in a Cocoa app. So, what you need to do is
 create a scripting definition (.sdef and stuff like that) that maps
 AppleScript command names to methods on your controller object.
 http://developer.apple.com has some nice documentation on making Cocoa
 applications scriptable this way, using NSScriptCommand where you need to
 add your own commands that don't have objects associated with them.

 Cheers,
 -- Uli Kusterer

 The Witnesses of TeachText are everywhere...
 http://www.zathras.de






 ___

 Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

 Please do not post admin requests or moderator comments to the list.
 Contact the moderators at cocoa-dev-admins(at)lists.apple.com

 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/cocoa-dev/dan.ribe%40gmail.com

 This email sent to dan.r...@gmail.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Utility/Floating window with titlebar on left side

2010-05-06 Thread Dan Ribe
Hello Everyone,

I am porting my application from carbon to cocoa  need exact
functionality.

In Carbon I was using Side Title with the utility window. Is there any way
to do the same thing in cocoa now? I am not able to see Side Title
anywhere in the interface builder.

Already tried NSBorderlessWindowMask, but that doesn't supports the close
button functionality, which is required in my case.

Any pointers on this will be a great help.

Cheers!


On Tue, Sep 23, 2008 at 4:35 AM, Eric Schlegel eri...@apple.com wrote:


 On Sep 22, 2008, at 3:55 PM, Nick Beadman wrote:

  According to http://www.carbondev.com/site/?page=64-bit+Carbon:

 HITheme is currently undecided. We did hear from multiple developers at
 the conference today who use HITheme and would like to see it in 64-bit.

 -eric schlegel


 Has the fate of HITheme has been decided, and it is going to be the theme
 drawing API for OS X [1] going forward?


 It has been decided; HITheme is fully supported in 64-bit and is the
 recommended approach for theme-savvy drawing in both Carbon and Cocoa apps.

 -eric


 ___

 Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

 Please do not post admin requests or moderator comments to the list.
 Contact the moderators at cocoa-dev-admins(at)lists.apple.com

 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/cocoa-dev/dan.ribe%40gmail.com

 This email sent to dan.r...@gmail.com

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Leopard for development / testing.

2009-12-09 Thread Dan Ribe
Hi All,

I want to get a copy of Leopard for development/testing purpose. Can anyone
please let me know.

- Is there anyway to download it from apple's site ?
- Does apple provides Leopard copy for Development/Testing for free or I
have to pay for that ?
- If apple provides free copy of Leopard for development/testing purpose
then what I need to do to get one ?

Please excuse me as my question is not related to cocoa but I thought
someone will be able to answer it in this list. Thanks for your help !

Cheers
-Dan
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Leopard for development / testing.

2009-12-09 Thread Dan Ribe
I already have snow leopard  developer tools for it. So basically I can
develop application using it on snow leopard for both 10.5  10.6.

I am looking for a copy of Leopard so that I can test my software on Leopard
as well. thanks



On Thu, Dec 10, 2009 at 10:18 AM, Evadne Wu e...@monoceroi.com wrote:

 Hi Dan,

If you already have a copy of OS X, you have everything necessary.
  Pop the DVD in and look for Developer Utilities.  Apple bundles them for
 free with every copy of OS X.  If you’re talking about private betas you’ll
 need to become an ADC member.

 ev

 On Dec 10, 2009, at 12:37 PM, Dan Ribe wrote:

  Hi All,
 
  I want to get a copy of Leopard for development/testing purpose. Can
 anyone
  please let me know.
 
  - Is there anyway to download it from apple's site ?
  - Does apple provides Leopard copy for Development/Testing for free or I
  have to pay for that ?
  - If apple provides free copy of Leopard for development/testing purpose
  then what I need to do to get one ?
 
  Please excuse me as my question is not related to cocoa but I thought
  someone will be able to answer it in this list. Thanks for your help !
 
  Cheers
  -Dan
  ___
 
  Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
 
  Please do not post admin requests or moderator comments to the list.
  Contact the moderators at cocoa-dev-admins(at)lists.apple.com
 
  Help/Unsubscribe/Update your Subscription:
  http://lists.apple.com/mailman/options/cocoa-dev/ev%40monoceroi.com
 
  This email sent to e...@monoceroi.com


___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


[iPhone] How to sense the duration of touch on iPhone button.

2009-09-10 Thread Dan Ribe
Hi All,



I am trying to implement a phone pad for my application. For key with title
'0' I want the same behavior as the iPhone phone application :


1. If user touches, it should immediately display a 0.

2. If user holds down the button for some time, it should display a '+' (I
mean 0 should be replaced with a '+').



Can anyone help me with the second part of this? What kind of handling is
required for this. I mean how i can find out that user is holding that
button for sometime ?



Thanks for help !
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


[iPhone] : How to customize Phonepad ?

2009-09-08 Thread Dan Ribe
Hi All,
I am looking for a way to customize the Phonepad provided by the iPhone for
my application use. Here is the list I am interested in :
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


[iPhone] : How to customize Phonepad ?

2009-09-08 Thread Dan Ribe
Sorry for my last mail ... It got sent while I was typing !

Hi All,
I am looking for a way to customize the Phonepad provided by the iPhone for
my application use. Here is the list I am interested in :

- Want to show it at the middle of the screen.
- Want to change caption of the button to Call.
- Want to change the color/size of the Phonepad.
- Also want to customize the keys which will be available to the users (hide
special characters other than '+'  '#').

Can anyone give me some pointers on this. Any help on this is highly
appreciated.

Cheers !
-Dan
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: comparing Strings.

2008-10-06 Thread Dan Ribe
Not aware of any such custom implementation of the strcmp() functions 

But here is something which you can try : Take the words from the first
strings  search them in the second. If all words exists in the same order
(compare the index to determine the order), then you can say that these are
the strings which are same. Also you need to match the total numbers of
words in both the strings.

For example in below strings sandro  computer are the words. Hope this
helps.

Cheers !

On Tue, Oct 7, 2008 at 10:52 AM, Sandro Noel [EMAIL PROTECTED] wrote:

 Gretings.

 i'm having a problem comparing some type of strings, for example the one
 giving me a problem right now.
 is let's say in my database i have 4 version of the same string .

 sandro's computer
 sandro's_computer
 sandros computer
 sandros_computer

 I would like them to compare as being equal,
 is there a way I can mingle with the comparing routine
 to ask it to ignore some characters in the comparison?

 thank you!
 Sandro.

 ___

 Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

 Please do not post admin requests or moderator comments to the list.
 Contact the moderators at cocoa-dev-admins(at)lists.apple.com

 Help/Unsubscribe/Update your Subscription:
 http://lists.apple.com/mailman/options/cocoa-dev/dan.ribe%40gmail.com

 This email sent to [EMAIL PROTECTED]

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Using WSDL based stubs in the carbon/cocoa application.

2008-04-04 Thread Dan Ribe
Hello Everyone,

I am new to Web Services  need some help on it.

I am in process of porting my client application to Mac. For communication
with server, client is using SOAP with WSDL (Web services Description
language). To generate stubs on Mac I am using WSMakeStubs (command line
tool from apple). I have chosen this as most of my code is in C++, so I am
plannning to generate stubs in C++  then integrate it with my application
code. Purpose of using the Web Services is to get the API version from
server (response is a string like 1.0), Checking out  checking in the
license etc.

WSMakeStubs has generated a function VersionService::GetAPIVersionImmediate
(this is a static function), code for this function is mentioned below.

/*-
 * VersionService::GetAPIVersion
 */
CFTypeRef VersionService::GetAPIVersionImmediate(CFTypeRef /* Complex type
http://version.localhost.com|GetAPIVersion */ in_parameters)
{
VersionService::GetAPIVersion _invocation;
_invocation.setParameters(in_parameters);
return _invocation.copyResultValue();
}

I tried to call this function like :
CFTypeRef versionRef = VersionService::GetAPIVersionImmediate(CFSTR(
https://test.localhost.net:8443/Version/services/Version?wsdlhttps://sjcpcommgw01.localhost.net:8443/Version/services/Version?wsdl
));
https://https://sjcpcommgw01.localhost.net:8443/Version/services/Version?wsdl
test.https://sjcpcommgw01.localhost.net:8443/Version/services/Version?wsdl
localhost.net:8443/Version/services/Version?wsdlhttps://sjcpcommgw01.localhost.net:8443/Version/services/Version?wsdlis
the location of the wsdl file. i am able to browse this in firefox
without any problem, but In am application I am always getting my versionRef
as NULL.

I sense that I am missing something here. Either I am not calling above
function with appropriate argument or I need to do some custom handling
related to this. Function parameter comment says /* Complex type
http://version.localhost.com|GetAPIVersion */.

So my questions are :
 - What does complex type means in the function parameter. Do I need to
provide the argument in some specific format for calling this function ?
 - Is there something else which I need to do in order to make it work ?
Means doing some custom handing etc. if yes, Please tell me what is
required.

Any kind of help on this is highly appreciated. Thanks a lot for your help
in advance.

Cheers!
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]