Re: Is there any API to detect the WIFI/CELL Signal Strength

2011-08-24 Thread Stephane Sudre
There are both supported and private APIs to get this kind of data. In Mac OS X 10.6 and later, check the CoreWLAN.framework. On Wed, Aug 24, 2011 at 5:19 AM, Jens Alfke wrote: > > On Aug 23, 2011, at 5:38 PM, Sasikumar JP wrote: > >> For my education, could you let me know,if there is any API t

Catching actions of fonts "Typography" panel

2011-08-24 Thread Rimas M.
Hello folks, I am wondering - how it is possible to catch action, when sender is a Typography (the one that can be found in Fonts panels action menu at the left bottom side - http://db.tt/CC1hX8c )? If I have a text view with selection and I choose something in it (for example Alternative stylisti

Re: Catching actions of fonts "Typography" panel

2011-08-24 Thread Mike Abdullah
NSTextView has plenty of other delegate methods that will tell you why a change is about to happen. Use those to decide how to handle after the change has occurred. Sent from my iPad On 24 Aug 2011, at 11:39 AM, "Rimas M." wrote: > Hello folks, > > I am wondering - how it is possible to catc

Re: Is there any API to detect the WIFI/CELL Signal Strength

2011-08-24 Thread Eric E. Dolecki
CoreWLAN.framework isn't available for iOS (FYI). There is an open radar on this issue in the hopes to bring something to iOS. There is WifiManager for Android and people complaining about something like that not being available for Apple devices. - Eric On Wed, Aug 24, 2011 at 5:10 AM, Stephane

Fwd: Can Peer-to-Peer Model Be Launched in AppStore?

2011-08-24 Thread Bing Li
Begin forwarded message: > From: Wayne J > Date: 2011年8月23日 上午04时51分27秒格林尼治标准时间+0800 > To: Bing Li > Subject: Re: Can Peer-to-Peer Model Be Launched in AppStore? > > Unfortunately I cannot reply to the list right now because I don't have > things setup correctly. > > From a technical point

Fwd: Can Peer-to-Peer Model Be Launched in AppStore?

2011-08-24 Thread Bing Li
Begin forwarded message: > From: Wayne J > Date: 2011年8月23日 上午04时57分32秒格林尼治标准时间+0800 > To: Bing Li > Subject: Re: Can Peer-to-Peer Model Be Launched in AppStore? > > Sorry, I missed you second question. > > If the iPad is making the connection then this should work on NAT but it > should al

Re: Catching actions of fonts "Typography" panel

2011-08-24 Thread Rimas M.
Delegate methods could be used if there is an editable textview. But what if not? For other things we have "changeFont:, changeColor:, changeAttributes:". Unfortunately, neither of them are called by action I have mentioned. Regards, Rimas M. On Wed, Aug 24, 2011 at 1:49 PM, Mike Abdullah wrote:

Re: Preventing lion from saving state...

2011-08-24 Thread Sean McBride
On Wed, 24 Aug 2011 08:56:49 +1000, Graham Cox said: >In Xcode 4, you can configure your scheme to have "disable state >restoration" checked. This suggests that there is a switch that can be >set that turns this off for an app, either as a defaults setting or >maybe as a command-line argument. Unf

Re: Odd error logged when coming back from 'Browse All Versions'

2011-08-24 Thread Kevin Perry
Hi Graham, Right now, Versions doesn't bring back the inspectors automatically, but it may do so in the future. For now, bringing them back manually is the right thing. As for the logging, it's a known OS bug, but is basically harmless. Thanks. On Aug 23, 2011, at 8:08 PM, Graham Cox wrote: >

Representation of strings with special chars

2011-08-24 Thread Alexander Reichstadt
Hi, we have a phenomenon, that is not quite clear. This is with 10.6.7 Xcode 4.0. NSArray *test = [NSArray arrayWithObject:@"ÜÄÖüäö"]; NSLog(@"%@",test); NSLog(@"%@",[test objectAtIndex:0]); This prints out the following: 2011-08-24 20:03:19.129 PetWorkX[15717:903] ( "\U00dc

Re: Representation of strings with special chars

2011-08-24 Thread David Duncan
On Aug 24, 2011, at 11:07 AM, Alexander Reichstadt wrote: > we have a phenomenon, that is not quite clear. This is with 10.6.7 Xcode 4.0. > >NSArray *test = [NSArray arrayWithObject:@"ÜÄÖüäö"]; >NSLog(@"%@",test); >NSLog(@"%@",[test objectAtIndex:0]); > > This prints out the followin

Re: Representation of strings with special chars

2011-08-24 Thread Sean McBride
On Wed, 24 Aug 2011 20:07:40 +0200, Alexander Reichstadt said: >Reason to ask and problem to solve is, that the values with Umlauts are >to be passed on to an SQL backend, and in some cases the umlauts are not >forwarded correctly. Escaped they return no answer or, even worse, cause >an SQL error

Re: Representation of strings with special chars

2011-08-24 Thread Lee Ann Rucker
On Aug 24, 2011, at 11:14 AM, David Duncan wrote: > On Aug 24, 2011, at 11:07 AM, Alexander Reichstadt wrote: > >> we have a phenomenon, that is not quite clear. This is with 10.6.7 Xcode 4.0. >> >> NSArray *test = [NSArray arrayWithObject:@"ÜÄÖüäö"]; >> NSLog(@"%@",test); >> NSLog(@"%@",

Re: Animated Split View

2011-08-24 Thread Luc Van Bogaert
On 01 Jun 2011, at 12:07, Antonio Nunes wrote: > I want a generic animated split view. So I had a rummage online, and couldn't > find anyone who had prepared the wheel for me. Consequently I set out to > create my own. I soon found that overriding setPosition:ofDividerAtIndex: > and make it w

Re: Representation of strings with special chars

2011-08-24 Thread Alexander Reichstadt
Actually it's a couple of wrapper-classes to MYSQL c-calls by Karl Kraft. In the sqlfetch-class, eventually it arrives at mysql_stmt_prepare(myStatement, [s UTF8String],[s length]) where s is the NSString instance containing the SELECT-statement, such as SELECT field="someÜberthing". From

Re: Representation of strings with special chars

2011-08-24 Thread Greg Parker
On Aug 24, 2011, at 1:24 PM, Alexander Reichstadt wrote: > Actually it's a couple of wrapper-classes to MYSQL c-calls by Karl Kraft. > > In the sqlfetch-class, eventually it arrives at > > mysql_stmt_prepare(myStatement, [s UTF8String],[s length]) > > where s is the NSString instance contain

Re: Catching actions of fonts "Typography" panel

2011-08-24 Thread Martin Wierschin
> Delegate methods could be used if there is an editable textview. But what if > not? For other things we have "changeFont:, changeColor:, > changeAttributes:". Unfortunately, neither of them are called by action I > have mentioned. The actions you mentioned, font typography options set via Appl

Re: Representation of strings with special chars

2011-08-24 Thread Alexander Reichstadt
It seems a work-around is to append a space to the select-statement, mysql does not care about that and it brings the umlaut-problem to cease in select-statements. Does this only cover some other issue that is going to return, or is this valid? I found a thread talking about the length with uml

codesign

2011-08-24 Thread Jaap Cammeraat
hi, i'm not using xcode but want to codesign my Mac App manually. which commands do I need to enable my Mac App to connect with the APNS. regards, jaap ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderat

Re: Representation of strings with special chars

2011-08-24 Thread Jens Alfke
On Aug 24, 2011, at 2:14 PM, Alexander Reichstadt wrote: > It seems a work-around is to append a space to the select-statement, mysql > does not care about that and it brings the umlaut-problem to cease in > select-statements. Does this only cover some other issue that is going to > return, or

Re: Representation of strings with special chars

2011-08-24 Thread Greg Parker
On Aug 24, 2011, at 2:14 PM, Alexander Reichstadt wrote: > It seems a work-around is to append a space to the select-statement, mysql > does not care about that and it brings the umlaut-problem to cease in > select-statements. Does this only cover some other issue that is going to > return, or i

Re: Representation of strings with special chars

2011-08-24 Thread Jens Alfke
On Aug 24, 2011, at 3:45 PM, Greg Parker wrote: > That's because you are still using [s length] to get the length of [s > UTF8String]. Don't do that. If you add more umlauts then it will stop working > again. Ow. I didn’t see that problem in the code. Definitely a showstopper. Alexander, what

Re: Odd error logged when coming back from 'Browse All Versions'

2011-08-24 Thread Graham Cox
On 25/08/2011, at 1:44 AM, Kevin Perry wrote: > Right now, Versions doesn't bring back the inspectors automatically, but it > may do so in the future. For now, bringing them back manually is the right > thing. That's useless. Can I get a notification that my app returned from browsing Versio

Confused with block completionHandler

2011-08-24 Thread Brad Stone
I need to call this method manually but I'm confused how to format the completionHandler. I don't understand what I'm reading. Can anyone give me an example of how to define the completionHandler or point me to some documentation? [self saveToURL:[self fileURL] ofType:@"myDocType" forSaveOp

Re: Confused with block completionHandler

2011-08-24 Thread Luke Hiesterman
It looks like you've basically got it with your openPanel example. The only difference in the document example is that the parameter to the block is an NSError*. So, your call would look something like this: [self saveToURL:[self fileURL] ofType:@"myDocType" forSaveOperation:NSAutosaveInPlaceOp

Re: Confused with block completionHandler

2011-08-24 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 8/24/11 5:46 PM, Brad Stone wrote: > This is the method definition - (void)saveToURL:(NSURL *)url > ofType:(NSString *)typeName > forSaveOperation:(NSSaveOperationType)saveOperation > completionHandler:(void (^)(NSError *errorOrNil))completionHan

Re: Confused with block completionHandler

2011-08-24 Thread Graham Cox
On 25/08/2011, at 10:46 AM, Brad Stone wrote: > I need to call this method manually but I'm confused how to format the > completionHandler. I don't understand what I'm reading. Can anyone give me > an example of how to define the completionHandler or point me to some > documentation? > > [s

Re: Confused with block completionHandler

2011-08-24 Thread Brad Stone
All these answers are great. Thanks On Aug 24, 2011, at 9:01 PM, Graham Cox wrote: > > On 25/08/2011, at 10:46 AM, Brad Stone wrote: > >> I need to call this method manually but I'm confused how to format the >> completionHandler. I don't understand what I'm reading. Can anyone give me >>

Re: Odd error logged when coming back from 'Browse All Versions'

2011-08-24 Thread Graham Cox
On 25/08/2011, at 10:17 AM, Graham Cox wrote: > Can I get a notification that my app returned from browsing Versions (and is > entering Versions)? I found the added window delegate methods that notify windows entering and leaving Versions. They are not called for my palettes. I like Versio

Re: Odd error logged when coming back from 'Browse All Versions'

2011-08-24 Thread Jerry Krinock
On 2011 Aug 24, at 17:17, Graham Cox wrote: > Can I get a notification that my app returned from browsing Versions (and is > entering Versions)? Terminology: "browsing versions" is called "viewing mode", as in "you can view but you can't edit". We have NSWindowWillEnterVersionBrowserNotificat

Re: Odd error logged when coming back from 'Browse All Versions'

2011-08-24 Thread Graham Cox
On 25/08/2011, at 11:28 AM, Jerry Krinock wrote: > We have NSWindowWillEnterVersionBrowserNotification and > NSWindowDidExitVersionBrowserNotification, however I found the former is not > received if a document *opens* on the right side of the version browser, i.e. > if the user "browses" to i

Re: Odd error logged when coming back from 'Browse All Versions'

2011-08-24 Thread Quincey Morris
On Aug 24, 2011, at 18:45 , Graham Cox wrote: > On 25/08/2011, at 11:28 AM, Jerry Krinock wrote: > >> We have NSWindowWillEnterVersionBrowserNotification and >> NSWindowDidExitVersionBrowserNotification, however I found the former is not >> received if a document *opens* on the right side of th

Re: Odd error logged when coming back from 'Browse All Versions'

2011-08-24 Thread Graham Cox
On 25/08/2011, at 12:03 PM, Quincey Morris wrote: > As to why this isn't automatic, the answer is hinted at, earlier in the > video. The versions browser doesn't know what parts of your user interface > are necessary for interacting with the document window during version > browsing. It could

Re: Odd error logged when coming back from 'Browse All Versions'

2011-08-24 Thread Jerry Krinock
On 2011 Aug 24, at 18:45, Graham Cox wrote: > Can you explain what you mean by a document opening on the right hand side? I > can't seem to get that to happen. When user clicks "Browse All Versions", the current document window jumps to the left side of the Star Wars screen. That document has

Re: Odd error logged when coming back from 'Browse All Versions'

2011-08-24 Thread Graham Cox
On 25/08/2011, at 12:53 PM, Jerry Krinock wrote: > When user clicks "Browse All Versions", the current document window jumps to > the left side of the Star Wars screen. That document has "entered the > version browser". However, another document, the previous version, opens in > a window in

Re: Odd error logged when coming back from 'Browse All Versions'

2011-08-24 Thread Jerry Krinock
On 2011 Aug 24, at 20:07, Graham Cox wrote: > Maybe my understanding is a little off here, but I'd assumed that the > versions "on the right side" were just snapshots (images) of the window > content rather than actual documents. Oh, I'd assumed that at first too. But in fact they are real in

Re: Odd error logged when coming back from 'Browse All Versions'

2011-08-24 Thread Quincey Morris
On Aug 24, 2011, at 19:24 , Graham Cox wrote: > I can't imagine how a palette would come into version browsing Admittedly I didn't spend a lot of time trying to find a convincing use case, but the example that sprang immediately to mind is if the palette is actually some kind of table of conten

NSInvocationOperations mysteriously whacked out of NSOperationQueue

2011-08-24 Thread Jerry Krinock
SHORT STORY I discovered a bug in my app today caused by the following repeatable behavior: When one particular NSInvocationOperation in an NSOperationQueue executes, two others get whacked out of the queue, and thus never execute. LONG STORY Starting with an empty NSOperationQueue, which I h

"iTunes Music Library.xml" won't load with dictionaryWithContentsOfFile:

2011-08-24 Thread David Dengg
Hello list, one of my customers is reporting that my app does not find the "iTunes Music Library.xml" file. Its there and its filled with data. His iTunes runs fine. He send me the file and to my eyes it looks fine. The way i load it is with: NSDictionary * xmldict = [NSDictionary dictionaryWit

Hiding the title bar and adding the default close/maximize/minimize buttons

2011-08-24 Thread Idan Ratzabi
Hi, I need to hide my window title bar and add the default buttons(close/min/max) to my custom view. I'm using NSWindow's "standardWindowButton:forStyleMask" to get those buttons. I want to emulate the default close button that when you hover over it, it causes the "x" to appear. I tried doing it

Re: "iTunes Music Library.xml" won't load with dictionaryWithContentsOfFile:

2011-08-24 Thread Jens Alfke
On Aug 24, 2011, at 4:02 AM, David Dengg wrote: > NSDictionary * xmldict = [NSDictionary > dictionaryWithContentsOfFile:libraryXML]; Try loading it using NSPropertyListSerialization, which will return an NSError telling you what went wrong. —Jens smime.p7s Description: S/MIME cryptographic s

Re: NSInvocationOperations mysteriously whacked out of NSOperationQueue

2011-08-24 Thread Ken Thomases
On Aug 25, 2011, at 12:15 AM, Jerry Krinock wrote: > I discovered a bug in my app today caused by the following repeatable > behavior: When one particular NSInvocationOperation in an NSOperationQueue > executes, two others get whacked out of the queue, and thus never execute. > All but three o

Re: Catching actions of fonts "Typography" panel

2011-08-24 Thread Rimas M.
You are absolutely right, Martin. That was I have thought at the beginning. But it didn't worked. Now I have checked more deeply and looks like I have a bug in my responders chain which prevents me from getting changeAttributes:. Best Regards, Rimas M. On Thu, Aug 25, 2011 at 1:04 AM, Martin Wie