Re: Modal phone calls?

2010-07-28 Thread Martin Stoufer
On 7/27/10 3:22 PM, Luke the Hiesterman wrote: On Jul 27, 2010, at 3:18 PM, Martin Stoufer wrote: I have a working app that is using the openURL: method on its sharedApplication to dial a phone#. The issue I am unable to resolve now is how to get the phone app to 'background' itself once

Re: Modal phone calls?

2010-07-28 Thread Martin Stoufer
On 7/28/10 9:30 AM, Roland King wrote: ] That is what I was afraid of. However when I answer an incoming call while app A is in the foreground. it will reappear once I hang up the call. There is probably some private API hanging around that allows for this. If there is you can't discuss

Modal phone calls?

2010-07-27 Thread Martin Stoufer
I have a working app that is using the openURL: method on its sharedApplication to dial a phone#. The issue I am unable to resolve now is how to get the phone app to 'background' itself once the call is over and bring back my app to the foreground. I am reading up on many possible avenues in

Re: Discussion to splinter off cocoa-dev list

2009-06-13 Thread Martin Stoufer
If and when this community decided to move forward on this, it would surely be well past September. As for the Dev Forums, they may themselves be the answer to this discussion. I however do not want to raise the bar too high and exclude those on the current list if they choose not to enroll

Discussion to splinter off cocoa-dev list

2009-06-12 Thread Martin Stoufer
Greetings everyone, Having just finished my first WWDC and I am re-energized to get back into some deep development cycles again. As to how 1 week could be so grueling and satisfying at the same time, we may never know. With all the new functionality (APIs) to be provided in 10.6 and for

Anyone at WWDC?

2009-06-08 Thread Martin Stoufer
Any interest in meeting fellow list members for some beer activities near by? Yes, we can also talk shop if you so feel inclined. -Martin P.S. reply directly for ph#/meeting location. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Re: Effectively fetching console messages

2008-11-28 Thread Martin Stoufer
Couldn't you open a StreamReader object to the file itself (or perhaps from the out end of an NSTask that has the filtering already in place)? I'm thinking some type of grep with the appropriate expression. This task could be left open and simply keep reading in a worker thread in your app. If

Re: Arithmetics for large integers

2008-11-07 Thread Martin Stoufer
I use the GNU MP package (http://gmplib.org/) I had to tweak XCode 3 to get it to build 64-bit clean for the intel arch. It is used in a PI calculator I wrote and it is *brutally* fast and efficient. While it is all a raw C dylib, One could easily write a framework around it. Shawn Erickson

Re: Porting from Windows to Mac

2008-10-30 Thread Martin Stoufer
wax sentimental='true'Ah, CodeWarrior. I first cut my coding teeth on that ol' app. What an experience it was to actually design my own apps. Those were the days./wax OK, so I actually used gcc before that, but still I have to agree with Gary on this one. I have ported over a few

OpenDirectory.framework LDAP tutorial

2008-09-17 Thread Martin Stoufer
Does anyone have a simple tutorial example for this (or URL)? I would like to implement LDAP authentication in an app. The only code I have found have been rather long low-level listings with little documentation. I hate to just cutpaste w/o any knowledge of whats going on. I have setup an

CoreData with ODBC as the Object Store

2008-09-10 Thread Martin Stoufer
I have been pouring over the archives and digging around the net to see what the current status of this is. It looks like Apple does not have any current plans to expose an ODBC type as a data store(?) and the current work around is to stage the content from the db as a file on the system and

Dynamic right-sizing of TextContainer

2008-08-29 Thread Martin Stoufer
I am able to set the initial height/width of the NSTextContainer object of a NSTextView object in IB. However, I cannot find any method that will allow the programmatic re-sizing of the container when the text I'm adding exceeds this size. Optimally, I'd like to utilize the setContainerSize

Re: Quitting all active applications

2008-08-28 Thread Martin Stoufer
A small app that utilized an NSTask object whose system command would be 'killall -u your short username here -m regex'. Where the regex would probably exclude processes that did not include 'login' or anything 'launchd'. This would keep the reaper from killing your loginwindow process as

Re: ODBCKit problems with MySQL DB

2008-08-28 Thread Martin Stoufer
Matt, I have run across this with the JDBC plugin talking to an Oracle DB. I found that if only one record was returned, this logic bombed in the exact same manner, the workaround was to set the curRecord pointer to the last and read backwards if the record count ==1. Otherwise you just

Re: Quitting all active applications

2008-08-28 Thread Martin Stoufer
:46 AM, Martin Stoufer wrote: A small app that utilized an NSTask object whose system command would be 'killall -u your short username here -m regex'. And that would be a great way to lose data, if any of the applications getting killed had unsaved documents. -- * Martin C. Stoufer

Re: NSProgressIndicator not responding to calls outside of AppController class

2008-08-28 Thread Martin Stoufer
wrote: On Aug 28, 2008, at 10:37 AM, Martin Stoufer wrote: I am developing an app that is utilizing some legacy C code that I have massaged into Objective-C classes. In one of them, I am trying to drive an NSProgressIndicator view as defined by the NIB for the project. There is a core processing

Re: Quitting all active applications

2008-08-28 Thread Martin Stoufer
wrote: GUI applications do not generally handle SIGTERM (or any other signals for that matter). Killing GUI applications is a Bad Thing™ :) Randal is correct, this will lose your saved data in any currently open applications. On Thu, Aug 28, 2008 at 10:39 AM, Martin Stoufer [EMAIL PROTECTED] wrote

Re: ODBCKit problems with MySQL DB

2008-08-28 Thread Martin Stoufer
So we know there are multiple rows in the db that satisfy your query. Can you verify that multiple rows do show up in the rs object? I find that the call to rs.moveFirst is a bit redundant and the loop condition being [rs moveNext]. This assumes that this call does return a BOOL if successful.

Re: NSProgressIndicator not responding to calls outside of AppController class

2008-08-28 Thread Martin Stoufer
The display bit did the trick and with all the computing going on, the updating is still responsive. Thanks to Randall for the tips. Martin Stoufer wrote: I totally forgot about the 'display' call. I will try that as a first pass. As for refactoring, that IS the long term solution

Re: Convert unicode string into ascii

2008-08-28 Thread Martin Stoufer
The simplest way I've accomplished this is: [[NSString alloc] initWithCString:(const char *)nullTerminatedCString encoding:(NSStringEncoding)encoding]; Where encoding is :NSUTF8StringEncoding You will then have to replace the unknown char with a . with the NSString method: