Watching a file for changes.

2013-03-20 Thread Mr. Gecko
How can I watch for file changes? E.G. I open a file in Text Edit, I change the file by adding a few words, I save the file. After the file is saved, I'll like to know it was saved. I need to know how to do this both in 10.8 and 10.4. E.G. For directories in 10.8, I use FSEventStreamCreate.

Re: Watching a file for changes.

2013-03-20 Thread Mr. Gecko
Thanks, I'll read though how that works and see if I can implement it in my software. On Mar 20, 2013, at 11:26 AM, Scott Ribe scott_r...@elevated-dev.com wrote: On Mar 20, 2013, at 9:34 AM, Felix Franz wrote: You can use kqueue or some wrapper like UKKQueue

Re: NSPipe eating up all available pipes on system.

2013-02-22 Thread Mr. Gecko
Doesn't make sense as when you release the NSPipe, it should disable that. I will report this to apple via Rdar. Thanks for solving my issue! On Feb 22, 2013, at 10:47 AM, Willeke willeke2...@gmail.com wrote: I don't know why but it doesn't leak if you do readInBackgroundAndNotify only if

NSPipe eating up all available pipes on system.

2013-02-20 Thread Mr. Gecko
I have written a daemon that listens for an incoming connection, runs a process using NSTask, and sends the output to the connection. After a couple of hours of receiving connections at varying lengths of time… The system has all of it's pipes taken, and the process stops sending responses to

Re: NSPipe eating up all available pipes on system.

2013-02-20 Thread Mr. Gecko
Thomases k...@codeweavers.com wrote: On Feb 20, 2013, at 4:10 PM, Mr. Gecko wrote: I have written a daemon that listens for an incoming connection, runs a process using NSTask, and sends the output to the connection. After a couple of hours of receiving connections at varying lengths of time

Re: NSPipe eating up all available pipes on system.

2013-02-20 Thread Mr. Gecko
I take that back, it still crashes with ARC… It crashes at run 4720. ___ 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

Re: MPMoviePlayerController doesn't work with remoteControlReceivedWithEvent

2012-08-11 Thread Mr. Gecko
Apparently, MPMoviePlayerController isn't the way to go for this. What I ended up doing was using MPMoviePlayerViewController and overrode the remoteControlReceivedWithEvent to customize the controls. Below is my current code which I am using. @interface MGMMoviePlayerViewController :

MPMoviePlayerController doesn't work with remoteControlReceivedWithEvent

2012-08-10 Thread Mr. Gecko
I want to allow the controls from my keyboard to work in my app. The controls use Apple's Remote Control events (beginReceivingRemoteControlEvents, endReceivingRemoteControlEvents, and remoteControlReceivedWithEvent), however I cannot seem to get this to work with MPMoviePlayerController. I do

Re: NSTask and NSPipe has buffering issues?

2012-08-01 Thread Mr. Gecko
Thank you! That makes lots of sense and I was able to fix my code. I knew that I sometimes got zero length data, but never knew why. Now that I know it's the end of file… I can make lots of use of this knowledge. Thanks for the help. On Jul 31, 2012, at 11:20 PM, Ken Thomases

NSTask and NSPipe has buffering issues?

2012-07-31 Thread Mr. Gecko
on the NSPipe and by the time the task quits, the buffer ether didn't receive the data or it hasn't prepared it for sending the notification. Can anyone help me out with this issue? It's been bugging me for hours. Thanks, Mr. Gecko ___ Cocoa-dev mailing list

Re: NSTask and NSPipe has buffering issues?

2012-07-31 Thread Mr. Gecko
What do you recommend after the task finishes? I have tried [[outPipe fileHandleForReading] readDataToEndOfFile] after the task finishes and it doesn't seem to improve. Can you maybe give me an example of how to do this right? On Jul 31, 2012, at 6:01 PM, Wim Lewis w...@omnigroup.com wrote:

Re: NSTask and NSPipe has buffering issues?

2012-07-31 Thread Mr. Gecko
I have multiple run loops. On the main thread I have [[NSRunLoop currentRunLoop] run]; On the sub threads for NSTask and NSPipe, I have CFRunLoopRunInMode(kCFRunLoopDefaultMode, 1, YES); If you are saying that you have to use NSRunLoop in order for it to work, get it working in my example and

Re: NSTask and NSPipe has buffering issues?

2012-07-31 Thread Mr. Gecko
I need threads because the main thread is a network loop waiting for a connection and when it gets a connection, it spawns a thread like in my example. I need to be able to respond to the client with all the data from the task and I need to close out the connection and release the spawned

NSSliderCell hiding bar.

2011-11-22 Thread Mr. Gecko
Hello. I am needing to write a custom NSSlider and apparently, overriding drawBarInside:flipped: does not prevent NSSliderCell from drawing the bar. Is there a way to hide the bar? Would I have to write a custom NSSlider?___ Cocoa-dev mailing list

CFRunLoopObserver causes crash on NSView drag.

2011-10-22 Thread Mr. Gecko
Hello, I have a problem with 10.7 where when you drag files to a view which accepts files, it'll crash because of a leak of some sort. This is triggered by my CFRunLoopObserver which I've written because operations which is done in the background never had the autorelease pool drained until the

Re: CFRunLoopObserver causes crash on NSView drag.

2011-10-22 Thread Mr. Gecko
timestamp:CFAbsoluteTimeGetCurrent() windowNumber:0 context:nil subtype:0 data1:0 data2:0]; [NSApp postEvent:evt atStart:NO]; } Le 22 oct. 2011 à 15:53, Mr. Gecko a écrit : Hello, I have a problem with 10.7 where when you drag files to a view which accepts files, it'll

Re: AVFoundation and kYUVSPixelFormat from AVPlayer

2011-10-12 Thread Mr. Gecko
Just so Apple knows we want this, I'll also fill an enhancement request for a QTVisualContext like API it's really useful for realtime video effects and off process video playing. The more people who files bug reports for the same thing, the more Apple knows we want this. On Oct 12, 2011, at

AVFoundation and kYUVSPixelFormat from AVPlayer

2011-10-11 Thread Mr. Gecko
Hello, I am needing to have AVPlayer output the video as an CVImageBufferRef in real time instead of AVPlayerLayer. I am able to do this with QTKit and QTPixelBufferContextCreate, however, QTKit is said to be dead and AVFoundation is the future as well as AVFoundation is 64bit. So far what

Re: AVFoundation and kYUVSPixelFormat from AVPlayer

2011-10-11 Thread Mr. Gecko
I understand this and have things to account for this already working. I would explain what my program does, but that will take a long time. Basically the reason I need it in CVImageBufferRef using YUV format of pixles is because I am doing off process playing of video and just receiving the

Return causes EXC_BAD_ACCESS

2011-07-28 Thread Mr. Gecko
I am unable to find out as to why I am receiving this problem, I can verify other parts of the code before it gets to the return and that the object I am returning does in-fact work as I am able to NSLog it and see the description of it. The basic idea of this code is to notify other objects to

Re: Return causes EXC_BAD_ACCESS

2011-07-28 Thread Mr. Gecko
That makes lots of sense, never even expected that to happen. Adding a local variable and setting it to the value before releasing it and returning that variable fixes the issue. I am still looking to an link to explanation in detail as to why this happens. If it's as I said, then I do not

Re: Framework Installation Directory

2011-04-09 Thread Mr. Gecko
I try to stay away from Disk Images and Packages as they annoy users such as myself... I think the Symbolic link is what I'm doing, but thanks for the suggestion. On Apr 9, 2011, at 3:54 PM, Stephane Sudre wrote: If you're not limited by the Mac App Store requirements (for 3rd party dev),

Framework Installation Directory

2011-04-08 Thread Mr. Gecko
I need help with the Installation Directory for a framework that will be shared between a application and 2 daemons within side it. I think I may be able to do it if I were to have the 2 daemons executables in the MacOS path or another folder such as one named Daemons in the Contents folder. I

Re: Framework Installation Directory

2011-04-08 Thread Mr. Gecko
So basically once I've compiled the daemon, have it run a post script that will change the path to go back 4 directories instead of 1 if I was to place it in Contents/Daemon/Daemon.app/Contents/MacOS/Daemon? Thanks for the response, Mr. Gecko On Apr 8, 2011, at 8:48 AM, Sherm Pendley wrote

Re: Framework Installation Directory

2011-04-08 Thread Mr. Gecko
True, I forgot all about symbolic links. On Apr 8, 2011, at 10:05 AM, Jean-Daniel Dupas wrote: Or do a symlink of MyApp.app/Contents/Frameworks into your daemon Contents directory (using a build script too). cd Daemon.app/Contents/ ln -s ../../../Frameworks Frameworks (I didn't check

Re: NSDistributedNotificationCenter questions.

2011-02-19 Thread Mr. Gecko
Something like this? static NSAutoreleasePool *pool = nil; void runloop(CFRunLoopObserverRef observer, CFRunLoopActivity activity, void *info) { if (activity kCFRunLoopEntry) { if (pool!=nil) [pool drain]; pool = [NSAutoreleasePool new]; } else

NSDistributedNotificationCenter questions.

2011-02-18 Thread Mr. Gecko
I noticed that memory is not autoreleased when I receive a distributed notification, the only way to fix this is to wrap it in a autorelease pool, but this shouldn't be right? I would think that when you register for a notification it'll be on the run loop which has a autorelease pool and

Re: NSDistributedNotificationCenter questions.

2011-02-18 Thread Mr. Gecko
I know that you think I'm some noob at this. This may be true, but I am aware that Instruments shows that the memory I allocated during that distributed notification is still there. I know this because it's a 9MB allocation and it's in a NSData with no copy bytes and free when released. The one

Re: NSDistributedNotificationCenter questions.

2011-02-18 Thread Mr. Gecko
More information found. This may be a bug. I found this really cool method for NSAutoreleasePools called showPools. It is really useful for something like this. I found that it has a autorelease pool, but it never drains. It just gains items until it gets to 1016 items and then I don't know

Re: NSDistributedNotificationCenter questions.

2011-02-18 Thread Mr. Gecko
That may be the problem as this is a UIAgent and not a real GUI. The only GUI that appears is when you first open it or you open it again to change settings. I have many other types of notifications I'm listening for such as carbon events and accessibility events, but I don't know if they are

Re: NSDistributedNotificationCenter questions.

2011-02-18 Thread Mr. Gecko
Yes, that would be it, when I open the UI it releases the pool. Is there a way to prevent this from happening just incase I have other things that are autoreleasing to it? On Feb 18, 2011, at 8:20 PM, Ken Thomases wrote: Is your application getting any real GUI-style events, or is it only

Re: NSDistributedNotificationCenter questions.

2011-02-18 Thread Mr. Gecko
Here is some proof that it is still in memory, I waited about 5 minutes and it didn't dealloc automatically like you said it will... inline: PastedGraphic-1.png When I wrap a NSAutoreleasePool around the notification method, it releases as expected. I cannot have my application doing this as it

Receiving global window events?

2011-02-16 Thread Mr. Gecko
an event when the window closes, and maximizes (zooms). I see events for this in the carbon events, but I am guessing you must use GetWindowEventTarget to get the events for the window you want it from. Thanks for any help, Mr. Gecko smime.p7s Description: S/MIME cryptographic signature

Re: Receiving global window events?

2011-02-16 Thread Mr. Gecko
My guess is I'll have to keep track of applications starting and get their pid to do everything. I was kinda hoping for a register for all, but it doesn't seem to have it. AXObserverRef observer; AXObserverCreate(0, testEvent, observer); AXObserverAddNotification(observer, NULL,

Re: Get ProcessSerialNumber of last front application

2011-02-11 Thread Mr. Gecko
is waiting consuming 0% of the CPU. Le 9 févr. 2011 à 20:05, Mr. Gecko a écrit : The only question I would have is if I were to track the applications all the time, how much time on the processor would it require, would it 1. require enough that will slow down the user noticeably, or 2

Re: Get ProcessSerialNumber of last front application

2011-02-11 Thread Mr. Gecko
Thanks, I'm working out the code now and if it will compile on 64bit, then I'll use it. On Feb 11, 2011, at 10:15 AM, Jean-Daniel Dupas wrote: Does your application compile on 64 bits ? Do you get a deprecation warning when using required functions ? When the answer is no for both

Get ProcessSerialNumber of last front application

2011-02-09 Thread Mr. Gecko
help. Mr. Gecko smime.p7s Description: S/MIME cryptographic signature ___ 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

Re: Get ProcessSerialNumber of last front application

2011-02-09 Thread Mr. Gecko
I guess I can do that. I'll give it a try. On Feb 9, 2011, at 10:21 AM, Dave DeLong wrote: Alternative: instead of bringing another process forwards, tell yours to hide. Then the previously-frontmost app will be frontmost again. Dave Sent from my iPhone smime.p7s Description: S/MIME

Re: Get ProcessSerialNumber of last front application

2011-02-09 Thread Mr. Gecko
I'm looking for the process that was front before my application became front. I was thinking in getting the process as this is what I did in my menubar applications and I just stole code from them. I can do as Dave DeLong said and hide the application using [[NSApplication sharedApplication]

Re: Get ProcessSerialNumber of last front application

2011-02-09 Thread Mr. Gecko
of the customer and not do things that'll cause slow downs and all. One reason for this is I'm stuck with my older mac and I don't like things that slow me down. My big guess is number 2. On Feb 9, 2011, at 12:55 PM, Matt Neuburg wrote: On Wed, 9 Feb 2011 09:23:45 -0600, Mr. Gecko grmrge...@gmail.com

Localizable.strings not being read...

2011-02-03 Thread Mr. Gecko
? If so, have you found a fix? This project is complete and I don't really want to build the project file to get it working. Could it be a problem in info.plist? Thanks, Mr. Gecko smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing

Re: Localizable.strings not being read...

2011-02-03 Thread Mr. Gecko
I am aware of this, this is an Application and both the strings are in the Copy Bundle Resources build phase and appear in the application the way the should. But for some reason, it doesn't work. On Feb 3, 2011, at 12:40 PM, Uli Kusterer wrote: On 03.02.2011, at 19:33, Mr. Gecko wrote

Re: Localizable.strings not being read...

2011-02-03 Thread Mr. Gecko
keyCFBundleSignature/key string/string keyCFBundleVersion/key string0.1/string keyLSMinimumSystemVersion/key string${MACOSX_DEPLOYMENT_TARGET}/string /dict /plist On Feb 3, 2011, at 12:40 PM, Uli Kusterer wrote: On 03.02.2011, at 19:33, Mr

Re: Localizable.strings not being read...

2011-02-03 Thread Mr. Gecko
this for people who also encounter this problem. Note: I'm not mentioning the name of the app as it's not important and I don't want to advertise. On Feb 3, 2011, at 12:40 PM, Uli Kusterer wrote: On 03.02.2011, at 19:33, Mr. Gecko wrote: Hello, I'm having a problem where NSLocalizableString isn't

WebView NSURLProtocol Tiger problems.

2010-11-04 Thread Mr. Gecko
For some reason, on tiger, when you make your own protocol using NSURLProtocol and respond with URLProtocol:wasRedirectedToRequest:redirectResponse:redirectResponse to a WebView, it just doesn't redirect at all. Is this a known bug? Do I have to write a web server to redirect someone to

Re: WebView NSURLProtocol Tiger problems.

2010-11-04 Thread Mr. Gecko
]; [request release]; [response release]; } On Nov 4, 2010, at 10:55 AM, Mr. Gecko wrote: For some reason, on tiger, when you make your own protocol using NSURLProtocol and respond with URLProtocol:wasRedirectedToRequest:redirectResponse:redirectResponse to a WebView

Re: Drawing a custom NSTabView Border

2010-09-18 Thread Mr. Gecko
I was right about these lists not being useful anymore. None has done a custom Tab View border? Really? On Sep 17, 2010, at 5:29 PM, Mr. Gecko wrote: Hello I'm wondering what will be the best way to draw a custom NSTabView Border. I have tried many things and it always ends up that I fail

Re: Drawing a custom NSTabView Border

2010-09-18 Thread Mr. Gecko
18, 2010, at 9:40 AM, Mr. Gecko grmrge...@gmail.com wrote: I was right about these lists not being useful anymore. None has done a custom Tab View border? Really? Do you plan on acknowledging Seth Willits's reply? --Kyle Sluder ___ Cocoa-dev

Drawing a custom NSTabView Border

2010-09-17 Thread Mr . Gecko
Hello I'm wondering what will be the best way to draw a custom NSTabView Border. I have tried many things and it always ends up that I fail. The border gets drawn, but the objects in the Tab View, if you focus them, has a black edge around them, that is not elegant at all. Is there any examples

QTMovie Error -2048

2010-09-05 Thread Mr. Gecko
haven't had anyone else with this problem, I am considering moving to NSSound and making my own controls, but I don't know if I'll have the same error there. I cannot change the URL for the mp3 files as it'll miss up my system. Thanks, Mr. Gecko smime.p7s Description: S/MIME cryptographic signature

Re: Autorelease Pool Question.

2010-08-25 Thread Mr. Gecko
, at 10:44 PM, Mr. Gecko wrote: I am wondering if releasing the autorelease pool is the same as draining. If it's not, will releasing cause the objects not to be released? I am just wondering as I am using release in my applications and it would be bad if it didn't release the objects

Autorelease Pool Question.

2010-08-24 Thread Mr. Gecko
I am wondering if releasing the autorelease pool is the same as draining. If it's not, will releasing cause the objects not to be released? I am just wondering as I am using release in my applications and it would be bad if it didn't release the objects in

Re: va_list customize strings and objects.

2010-08-14 Thread Mr. Gecko
Update: So far this works, but I need to put everything else back in. The problem with this is that the only way I can think of doing this is following this http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/Strings/Articles/formatSpecifiers.html to do every single possible

Re: va_list customize strings and objects.

2010-08-14 Thread Mr. Gecko
Well this seems to work for everything but floats, I've tried this to fix the float issue but it didn't work. case 'f': case 'g': { double floatValue = va_arg(ap, double); size += sizeof(floatValue); ap2 = realloc(ap2, size); ap2[count] = (void *)floatValue;

Re: va_list customize strings and objects.

2010-08-14 Thread Mr. Gecko
Shouldn't it detect that with the sizeof? It also doesn't seem to work with long numbers. My guess is that I'll have to do a custom one for each possible value, I don't really want to do that because I think it is possible to do it all in the default case. On Aug 14, 2010, at 11:37 AM, Keary

Re: va_list customize strings and objects.

2010-08-14 Thread Mr. Gecko
I may as well just write my own stringWithFormat:arguments: to do what I need, it'll probably be the best way if I can't do the things in default. On Aug 14, 2010, at 12:02 PM, Keary Suska wrote: Look at your code again. You are forcing floats to be interpreted as doubles. Keary Suska

va_list customize strings and objects.

2010-08-13 Thread Mr . Gecko
Hello, I'm wanting to let's say escape strings and objects in a va_list before I use NSString to place the format together into one string. I know that on OS X va_list is just a char * that is an array, so I know I should be able to make one manually in code, but how is the question. I read

NSHTTPCookieStorage

2010-08-04 Thread Mr. Gecko
. But I would like an answer still. Thanks, Mr. Gecko smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Test Applications under 10.4 without rebooting?

2010-07-27 Thread Mr . Gecko
at that location if that maters. Anyone have a solution for testing this stuff under tiger? In the mean time I'll reboot to test this... Thanks, Mr. Gecko smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

if statement causing 32 Byte leak?

2010-01-09 Thread Mr. Gecko
that could be possible. Yes I'm releasing connections after I'm done using it. Should I just ignore this? Thanks, Mr. Gecko smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: if statement causing 32 Byte leak?

2010-01-09 Thread Mr. Gecko
:15 PM, Mr. Gecko grmrge...@gmail.com wrote: Hello, I'm going through leak checking and it seems that a if statement is causing a leak that's 32 Bytes big. My if statement is if (connections==nil) { connections = [[NSMutableArray new] retain]; } It says that if (connections==nil

Re: if statement causing 32 Byte leak?

2010-01-09 Thread Mr. Gecko
I just looked and saw that, so one question. Is array, string, and data all the same as new or are those autorelease? On Jan 9, 2010, at 7:34 PM, Graham Cox wrote: On 10/01/2010, at 12:28 PM, Mr. Gecko wrote: I thought it was [[[id alloc] init] autorelease]; You thought wrong: new

Re: if statement causing 32 Byte leak?

2010-01-09 Thread Mr. Gecko
: On 10/01/2010, at 12:35 PM, Mr. Gecko wrote: I just looked and saw that, so one question. Is array, string, and data all the same as new or are those autorelease? As Joar said: From the memory management guide: You take ownership of an object if you create it using a method

Re: if statement causing 32 Byte leak?

2010-01-09 Thread Mr. Gecko
{ [string appendString:@https://;]; } [string appendString:@example.com/]; return [NSURL URLWithString:string]; Just seeing if I understand that, it is kinda a lot to remember. On Jan 9, 2010, at 7:53 PM, Andy Lee wrote: On Jan 9, 2010, at 8:35 PM, Mr. Gecko wrote: I just looked and saw

Re: if statement causing 32 Byte leak?

2010-01-09 Thread Mr. Gecko
Ok, thanks for the help, now I'm going to have to fix all my applications to work like that ;) On Jan 9, 2010, at 8:34 PM, Graham Cox wrote: On 10/01/2010, at 1:27 PM, Mr. Gecko wrote: So I do not own the object when I get it from string, but I do when I get it from new and that means

Encrypting Binary Strings

2009-12-30 Thread Mr. Gecko
Is it possible for me to encrypt the strings in my binary so hackers can't easily figure out what my application has in it? Reason I'm asking is I have some private keys that encodes data that I/parents don't want kids or teenagers to find. Thanks, Mr.

Re: Encrypting Binary Strings

2009-12-30 Thread Mr. Gecko
, 2009 at 5:17 PM, Mr. Gecko grmrge...@gmail.com wrote: Is it possible for me to encrypt the strings in my binary so hackers can't easily figure out what my application has in it? Reason I'm asking is I have some private keys that encodes data that I/parents don't want kids or teenagers to find

Re: Encrypting Binary Strings

2009-12-30 Thread Mr. Gecko
with Mac OS X, and then once they are authenticated, I'm allowing them to set settings that are encrypted with a key in AES. On Dec 30, 2009, at 11:49 AM, Todd Heberlein wrote: On Dec 30, 2009, at 9:17 AM, Mr. Gecko wrote: Is it possible for me to encrypt the strings in my binary so

Re: Encrypting Binary Strings

2009-12-30 Thread Mr. Gecko
But then how would I get the data? If the key has to do with the password, then how can I get the parental settings and respond to them. On Dec 30, 2009, at 12:51 PM, Gleb Dolgich wrote: Perhaps a better way would be to ask for a password once the user is authenticated, and then generate an

Re: Encrypting Binary Strings

2009-12-30 Thread Mr. Gecko
On 30 Dec 2009, at 18:58, Mr. Gecko wrote: But then how would I get the data? If the key has to do with the password, then how can I get the parental settings and respond to them. On Dec 30, 2009, at 12:51 PM, Gleb Dolgich wrote: Perhaps a better way would be to ask for a password once

Re: Encrypting Binary Strings

2009-12-30 Thread Mr. Gecko
that only if you have the source code, you can find out, like make my own md5 algorithm and only if you know that algorithm, you can get the actual key. But to do that, I'll need to find a algorithm in cocoa that is public domain so I can modify it. Hope this clears things up, Mr. Gecko On Dec

Re: Encrypting Binary Strings

2009-12-30 Thread Mr. Gecko
without the application and being an administrator. On Dec 30, 2009, at 5:06 PM, Ken Thomases wrote: On Dec 30, 2009, at 3:56 PM, Mr. Gecko wrote: It's ether that you don't understand what I'm doing, or I don't understand that. Here is the full story. I am using Apple's SFAuthorizationView

Re: Encrypting Binary Strings

2009-12-30 Thread Mr. Gecko
On Dec 30, 2009, at 5:33 PM, Ken Thomases wrote: On Dec 30, 2009, at 5:15 PM, Mr. Gecko wrote: So are you saying I could use authorization service to store things with the user's authorization and get them back without the user's authentication? You can store a very limited, specific

Re: NSApplicationLoad() can't connect to window server in user logged out.

2009-12-18 Thread Mr. Gecko
application I wouldn't mind doing things the hacking way and some how make the windowserver trust apache. On Dec 18, 2009, at 6:06 PM, Mr. Gecko wrote: Hello I'm running 10.5 and I'm trying to do some image drawing with NSImage in Terminal via SSH and it seems like every time I try, I get this error

Re: NSApplicationLoad() can't connect to window server in user logged out.

2009-12-18 Thread Mr. Gecko
some offscreen headless rendering, use CoreGraphics + ImageIO On Sat, Dec 19, 2009 at 2:21 AM, Mr. Gecko grmrge...@gmail.com wrote: Ok, so I've done some more research and found this http://developer.apple.com/mac/library/technotes/tn2005/tn2083.html#SECPRELOGINANDTRUST, it basically says

Re: Apache Module

2009-11-28 Thread Mr. Gecko
Ok, I know your idea of a CGI Proxy like PHP CGI and I might try and see how that works. If it works great, I may use it instead of a module, but for now I finish making my first cocoa module at http://mrgeckosmedia.com/mod_example.zip Thanks for the help, Mr. Gecko On Nov 28, 2009, at 9:32 AM

Apache Module

2009-11-27 Thread Mr. Gecko
Hello, I'm working to write an Apache Module that allows you to make websites in Objective-C (Foundation/Cocoa) and I need to know how I should setup my xcode project. I got the basic idea, make a custom target that builds a .so file that has apache libraries but is that it? I'm going to try

Re: Apache Module

2009-11-27 Thread Mr. Gecko
not require a new module. Have fun Alex Sent from my iPhone On 27 Nov 2009, at 23:45, Mr. Gecko grmrge...@gmail.com wrote: Hello, I'm working to write an Apache Module that allows you to make websites in Objective-C (Foundation/Cocoa) and I need to know how I should setup my xcode project

Re: Apache Module

2009-11-27 Thread Mr. Gecko
from my iPhone On 28 Nov 2009, at 00:30, Mr. Gecko grmrge...@gmail.com wrote: Well I'm wanting to be able to write image generators and other things that is near impossible to do in php or any other web scripting language, also running compiled source is faster then a script. My idea

Re: Apache Module

2009-11-27 Thread Mr. Gecko
My idea was to basically write a module that runs NSTask to start the cocoa binary and just have a framework to like manage the server information and talk to the module, by printf I guess, saying like which headers to return and the data so I can set the content-type to image/png if I wanted

Re: Apache Module

2009-11-27 Thread Mr. Gecko
. Sent from my iPhone On 28 Nov 2009, at 01:08, Mr. Gecko grmrge...@gmail.com wrote: My idea was to basically write a module that runs NSTask to start the cocoa binary and just have a framework to like manage the server information and talk to the module, by printf I guess, saying like

Re: Apache Module

2009-11-27 Thread Mr. Gecko
be happy. I'm already working on my first step, getting mod_example to compile in xcode. On Nov 27, 2009, at 7:55 PM, Bill Bumgarner wrote: On Nov 27, 2009, at 5:08 PM, Mr. Gecko wrote: My idea was to basically write a module that runs NSTask to start the cocoa binary and just have

Re: Apache Module

2009-11-27 Thread Mr. Gecko
it so I can get the language of Objective-C to the web easier and better. I am getting closer to figuring out how to compile a module in cocoa. I think I can take it from here and I will post the first Objective-C module's source here for all to see and possibly use. Thanks for the tips, Mr. Gecko

QTMovie Load Percent.

2009-11-08 Thread Mr. Gecko
loadedRanges and it's a NSArray with an NSConcreteValue, don't know how to get the value of it, but if I knew, I could probably find the percentage. Any Help? Mr. Gecko ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Resize Text Field When Wraps

2009-08-26 Thread Mr. Gecko
Hello, I'm trying to resize a text field height when it wraps but I'm having a problem. I tried using [[self cell] cellSize] but it's only working when I push return and I need to get the height of it with the wraps. How might I do that? Thanks for the help, Mr. Gecko

Re: NSConnection Proxy Crash

2009-07-10 Thread Mr. Gecko
I found out it was because I was releasing a NSString which had autorelease on. Thanks anyway, Mr. Gecko On Jul 10, 2009, at 2:21 PM, Kevin Brock wrote: Kevin Brock wrote: The low bytes of this: Exception Codes: KERN_INVALID_ADDRESS at 0xc023 look suspiciously like

Re: Wake computer from sleep

2009-07-10 Thread Mr. Gecko
I decided to write a daemon that my alarm tells where the alarm file is and it tells the system when to wake up automatically. Thanks for helping anyway, Mr. Gecko On Jul 10, 2009, at 3:40 AM, Jean-Daniel Dupas wrote: Le 9 juil. 09 à 18:28, Mr. Gecko a écrit : Hello, I'm working

Wake computer from sleep

2009-07-09 Thread Mr. Gecko
maybe to save the user password in the keychain and use that to authenticate it to schedule an wake up time? Or save the AuthorizationRef and get that at start up? Thanks for any tips/help, Mr. Gecko ___ Cocoa-dev mailing list (Cocoa-dev

NSConnection Proxy Crash

2009-07-09 Thread Mr. Gecko
: 0xb398 ss: 0x001f efl: 0x00010202 eip: 0x94738688 cs: 0x0017 ds: 0x001f es: 0x001f fs: 0x gs: 0x0037 cr2: 0xc023 I can't seem to find the problem, the command gets executed and then it crashes. Help please? Mr. Gecko

Raw Infrared Data

2009-06-30 Thread Mr. Gecko
Is there anyway to get raw Infrared data from the Apple IR Controller? I'll like to be able to see data from remotes that are not the Apple Remote and also see the raw data of the apple remote so I could make a generic game controller or something like that. Thanks for tips/samples. Mr

Re: Raw Infrared Data

2009-06-30 Thread Mr. Gecko
All I really need is the raw data from the Apple Remote so I don't have to have the hold skip and previous buttons function. On Jun 30, 2009, at 10:06 PM, Andrew Farmer wrote: On 30 Jun 2009, at 07:03, Mr. Gecko wrote: Is there anyway to get raw Infrared data from the Apple IR Controller

Get application path by Bundle ID

2009-06-11 Thread Mr. Gecko
Hello, I'm trying to find a way to find an application path by the ID of the application. For an example if I wanted to find iTunes I give it the id of com.apple.iTunes and it gives me the path. Thanks for any tips/help, Mr. Gecko ___ Cocoa-dev

Re: Get application path by Bundle ID

2009-06-11 Thread Mr. Gecko
Thanks, I thought it might be in NSWorkSpace but I kept looking into NSBundle. On Jun 11, 2009, at 1:15 PM, Dave DeLong wrote: -[NSWorkspace absolutePathForAppBundleWithIdentifier:]; Cheers, Dave On Jun 11, 2009, at 11:14 AM, Mr. Gecko wrote: Hello, I'm trying to find a way to find

Re: Cocoa-dev Digest, Vol 6, Issue 825

2009-06-03 Thread Mr. Gecko
I'll be sure to look at that when I get on his system to debug. On Jun 3, 2009, at 2:54:38 AM, Michael Vannorsdel wrote: Could be one of many network programs like LittleSnitch or NetBarrier. Could also be he's using a proxy. ___ Cocoa-dev mailing

Apple Remote remove left and right hold events

2009-05-29 Thread Mr. Gecko
Hello, I'm trying to find out how to tell the apple remote to not do hold events for the left and right buttons. Is this Possible? If so how do I do it? Thanks, Mr. Gecko ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: Send Keyboard Events

2009-05-28 Thread Mr. Gecko
Seems to be what I needed. Thanks, Mr. Gecko On May 28, 2009, at 3:27 PM, Dave Keck wrote: Check out CGPostKeyboardEvent. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

NSView click through

2009-05-24 Thread Mr. Gecko
a mouseDown override and have that tell the status item to display a menu, but that doesn't highlight. I tried -drawStatusBarBackgroundInRect:withHighlight: but it doesn't draw the highlight as I thought it would... Any ideas? Thanks, Mr. Gecko

Re: Hex to NSString or NSData

2009-05-09 Thread Mr. Gecko
; byte_value = 0; } [result setLength:resultIndex]; return result; } I had to go through open source hex editors to find out. Thanks for the help, Mr. Gecko On May 9, 2009, at 3:43 AM, Gwynne Raskind wrote: On May 8, 2009, at 11:34 PM, Mr. Gecko wrote: And how

Re: Getting the private IP

2009-05-08 Thread Mr. Gecko
, at 6:32 PM, Alastair Houghton wrote: On 8 May 2009, at 15:46, Mr. Gecko wrote: Hello, I'm trying to find out how to get the private IP address. This is my quick way of finding out. - (NSString *)localIP { NSString *IPAddress = @; struct ifaddrs *myaddrs, *ifa; struct

Hex to NSString or NSData

2009-05-08 Thread Mr. Gecko
Hello, I have a string with hex and I want to ether make it into a NSData or NSString. How might I do that. P.S. The only thing I can find is how to make NSString/NSData into hex. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

  1   2   3   >