Base64 encoding of NSImage

2012-07-01 Thread Alexander Hartner
I am looking at available option to send an NSImage to a webserver. I came across gSoap however its licensing model makes it not suitable. Using REST / JSON seems like an easy option however NSDATA does not seem to be supported by the JSON Serialiser. The one remaining option I considered was to

Symbol not found when compiling MM (ObjC++) file

2011-08-05 Thread Alexander Hartner
I am constructing a framework consisting of C++, ObjectiveC and ObjectiveC++ files. As part of the framework I have created a wrapper around NSLog so I can control and disable log messages centrally. I know there are better ways to do this, however right now I need to get this working and don't

Re: Using CFMutableDictionaryRef (Resolved)

2010-02-28 Thread Alexander Hartner
ched : %f / %f", point.x, point.y, fetchedPoint.x, fetchedPoint.y); } else { NSLog(@"Not Stored Touch : %i",&touch); } } } } On 1 Mar 2010, at 01:12, Alexander Hartner wrote: > I have made some modifications. I am using local variables a

Re: Using CFMutableDictionaryRef

2010-02-28 Thread Alexander Hartner
nks for your help so far Alex On 28 Feb 2010, at 23:56, Fritz Anderson wrote: > On 28 Feb 2010, at 5:09 PM, Alexander Hartner wrote: > >> CFDictionaryAddValue(aTouchSession, touch, pointDict); >> NSLog(@"Stored Touch : %i Point : %i",&touch,&pointDict); >

Using CFMutableDictionaryRef

2010-02-28 Thread Alexander Hartner
This my be a little off topic, but I am trying to store a list of UITouch events in a dictionary as suggested in the Apple Documentation. This is what I have come up with, but it's not working. The documentation refers to a MultiTouchDemo which I can't find anywhere online. So with some help f

Rotating an NSImage around it's own center as well as offset to origin

2010-02-21 Thread Alexander Hartner
I would like to rotate and offset an NSImage and then draw it onto an NSImageView. So far I figured out to use Quartz and use CGContextRotateCTM and CGContextTranslateCTM. I got the offset working just fine using this, but as soon as I introduce the rotation it rotates the image relative to the

Re: Apache Module

2009-11-27 Thread Alexander Hartner
http://www.php.net/manual/en/image.examples-png.php Google is your friend. No need to reinvent the wheel. Sent from my iPhone On 28 Nov 2009, at 01:08, "Mr. Gecko" wrote: My idea was to basically write a module that runs NSTask to start the cocoa binary and just have a framework to like man

Re: Apache Module

2009-11-27 Thread Alexander Hartner
nced stuff which I have in mind, like I have an idea of a notification system that will use NSSpeechSynthesizer on my server. On Nov 27, 2009, at 6:46 PM, Alexander Hartner wrote: Why not use standard plain old cgi to do that? Sent from my iPhone On 28 Nov 2009, at 00:30, "Mr. Gecko&q

Fwd: Apache Module

2009-11-27 Thread Alexander Hartner
Hi there, Why would you want such a thing. Objective C compiles to a binary which you could integrate with apache using common cgi. However these days there are much more mature frameworks available geared for the delivery of HTML and other web content. Maybe I don't understand what you a

Re: Subversion and Interface Builder

2009-09-11 Thread Alexander Hartner
Thanks for all the feedback on this. Have there been any new development with 10.6 in this regard. I wonder what Apple themselves are using for version control ? Thanks in advance Alex On 28 Aug 2009, at 00:04, Alexander Hartner wrote: For some time now I have been struggling with

Subversion and Interface Builder

2009-08-27 Thread Alexander Hartner
For some time now I have been struggling with interface builder's NIB files and subversion. Every time I localise the .svn folder seem to be removed or get broken in other ways. I had a look online and found the suggestion below. Since this link is a little dated I am wondering if there are

Resolving address on 10.4 (ppc) - problem with endianness

2009-05-11 Thread Alexander Hartner
I am using the following to resolve a Bonjour discovered service address. However it seems that getnameinfo on 10.4 (ppc) does not translate correctly. However using inet_ntoa correctly resolved to an IP address. Ideally I am after the hostname, and if that cannot be resolved then the IP a

Resolving bonjour name (MyMac.local.)

2009-05-04 Thread Alexander Hartner
When trying to connect to my website using NSURLConnection as shown below the application fails rather frequently, as it's not able to resolve the server name (MyMac.local.). This url address was discovered previously using bonjour. Usually this issue is resolved by opening up Safari Bonjou

Re: Advice on server-side web service technology

2009-04-17 Thread Alexander Hartner
I had the same issue and found gsoap. It uses C++, but can be integrated nicely in a mm file. Sent from my iPhone On 17 Apr 2009, at 09:23, Alexander Spohr wrote: Am 17.04.2009 um 00:06 schrieb Russell Cook: I am working on a custom Obj-C framework that I need to expose through web ser

Open SSL on the iPhone

2008-10-06 Thread Alexander Hartner
I see that libssl and libcrypto have been removed from the iPhone. However my application uses low level unix sockets rather then the higher level NSUrlConnection. Not directly, but the framework / library I am using does. It would be very difficult to change my application, while it would

Creating MetaPackages using PackageMaker 3 on 10.5

2008-07-11 Thread Alexander Hartner
I would like to make a meta package containing a standard pkg file, some configuration files which go into the users home directory as well as the system folder. When I drag the pkg into Package Maker and install it, I end up getting a Content folder in the root of my system drive. It seems

Re: Linking with OpenSSL [Resolved]

2008-06-20 Thread Alexander Hartner
Thanks, this worked like a charm. On 21 Jun 2008, at 00:02, Trygve Inda wrote: Thanks for your quick response. Sorry to ask such a stupid question, but how do I add those. As frameworks? Alex On 20 Jun 2008, at 21:45, Trygve Inda wrote: It seems to me that the linker can't find the OpenSSL

Linking with OpenSSL

2008-06-20 Thread Alexander Hartner
I am using gSoap to integrate with a webservice. To enable SSL support I had to add this flag to the process -DWITH_OPENSSL g++ -DWITH_OPENSSL myclient.cpp stdsoap.cpp soapC.cpp soapClient.cpp - lxnet -lsocket -lnsl -lssl -lcrypto as described here : http://www.cs.fsu.edu/~engelen/soapdoc2.

Re: Bindings Cocoa and new Thread (Spinning Beach Ball an new Thread)

2008-06-05 Thread Alexander Hartner
task into different methods. Thanks again Alex On 5 Jun 2008, at 00:10, Alexander Hartner wrote: I have an application which refreshes a NSTable with data from a network server. The refresh can take several seconds, and might even fail when the server is not accessible. During the refresh

Bindings Cocoa and new Thread (Spinning Beach Ball an new Thread)

2008-06-04 Thread Alexander Hartner
I have an application which refreshes a NSTable with data from a network server. The refresh can take several seconds, and might even fail when the server is not accessible. During the refresh process I would like to display a sheet with a spinning progress indicator. Everything worked sort

Re: Read-Only ABRecord

2008-05-01 Thread Alexander Hartner
That's what I was afraid of :-( Thanks Alex On 1 May 2008, at 03:28, Jens Alfke wrote: On 30 Apr '08, at 4:47 PM, Alexander Hartner wrote: I would like to find out how to set a ABRecord as read-only, and if a record is configured to be read-only is it possible to edit it in t

Read-Only ABRecord

2008-04-30 Thread Alexander Hartner
The ABRecord class provides the isReadOnly method. Use isReadOnly to determine whether or not a record is read-only. http://developer.apple.com/documentation/UserExperience/Reference/ AddressBook/Classes/ABRecord_Class/Reference/Reference.html I would like to find out how to set a ABRecord as

Re: Accessing Directory.app shared contacts

2008-04-14 Thread Alexander Hartner
You could always use ABxLDAP (http://www.addressbookserver.com) to transfer contacts from you standard OS X Address Book to an LDAP directory. It uses the iSync API and runs in the back-ground. Have fun Alex > On Sat, Apr 12, 2008 at 11:02 AM, Tito Ciuro <[EMAIL PROTECTED]> wrote: >> The data is

Fwd: Localise between different versions of English in System Preferences

2008-03-12 Thread Alexander Hartner
and US derivatives in the International Panel but for some reason generic English seems to be given preferences. Any suggestions where I can look for the cause. Kind regards Alex Begin forwarded message: From: Alexander Hartner <[EMAIL PROTECTED]> Date: 4 March 2008 22:43:48 GMT To:

Localise between different versions of English

2008-03-04 Thread Alexander Hartner
I have an application which I would like to localise, however i need to support two flavours of English, one for the British edition and another for the US. In particular the word "Synchronize / Synchronise) is cause me headaches. Interface builder only seems to give me English. Any ideas o

SFAuthorizationView does not disable contents

2008-03-01 Thread Alexander Hartner
I have a SFAuthorizationView which contains several other controls, however at the not-authorised state, all components are still accessible. I am not sure if it is supposed to happen automatically or if I need to implement this myself in the delegate methods. - (void)authorizationViewDid

PackageMaker Problem

2008-02-21 Thread Alexander Hartner
I have two packages which are related, but not the same problem. A server component and a client component. I have configured the packages to use different package identifiers however as soon as I install one package any previous installation of the related package is removed. It seems like