Re: onSocketDidDisconnect in CocoaAsyncSocket

2011-04-29 Thread Bing Li
Dear Michael, "Disgracefully" means the client does not close normally. It might be crashed or closed by killing the relevant thread or process. I did that by clicking the red Tasks button in XCode. In this situation, the connection must not be closed properly with the socket methods. According t

iOS: Data sharing/upgrade

2011-04-29 Thread Phillip Mills
I have an application that uses iTunes file sharing for documents (PDF, rtf, Pages...) and Core Data with sqlite for storing metadata about those documents. I'm thinking of creating a simpler version with the same essential capability but without some of the advanced features, partly to promote

image rotation

2011-04-29 Thread Amy Heavey
Hi, I'm trying to generate a new image that is made up of a combination of other images. As I iterate over the array holding the images I want to do is... - place the componant image in the new canvas at a certain point (150,187) - rotate the componant image by a certain value (calculated

Using affine transforms

2011-04-29 Thread McLaughlin, Michael P.
I am writing the drawRect routine for a custom view in which I need to draw a simple X-Y graph, given the data. Desiring to be elegant and up-to-date, I decided that the best (Cocoa) way to do this was to construct a scaling affine transform to change x,y coordinates into view coordinates using C

Re: Using affine transforms

2011-04-29 Thread vincent habchi
Le 29 avr. 2011 à 17:01, McLaughlin, Michael P. a écrit : > I am writing the drawRect routine for a custom view in which I need to draw > a simple X-Y graph, given the data. Desiring to be elegant and up-to-date, > I decided that the best (Cocoa) way to do this was to construct a scaling > affine

Hey,f

2011-04-29 Thread Nishad Kumar
Hey, here is a good news i want to share with you ,i order 2 iphones from this company and receive them ,it is original much cheap than here . they can accept paypal of the payment ,this is very safe for the business if you are interested in ,you can go to check ,the website :www.myhamad.com ma

Re: cpp class keywotd

2011-04-29 Thread koko
BJ - Great response, thanks for being a professional! -koko On Apr 28, 2011, at 10:24 PM, B.J. Buchalter wrote: > > On Apr 28, 2011, at 11:48 PM, koko wrote: > >> Well, apparently, compiling for iOS app versus iOS static lib treats the >> processing of the .pch diifferently. >> Moving some

Re: Aliases with NDAlias not appearing where I tell them to be.

2011-04-29 Thread Kevin Muldoon
Much thanks for the information everyone. Invaluable stuff, and I finally have the behavior I was looking for. I'm still fuzzy on the real function of 'fromPath:'. It's equiv in FSNewAlias() appears to be fromFile which is defined as 'A pointer to the starting point for a relative search...' and c

Arbitrary Shaped Windows

2011-04-29 Thread Abhinav K Tyagi
Hi, How can i create an arbitrary shaped window? Mouse events should be handled in the shape only and not the rectangular window portion. For Ex. If my window is circular, then outside the circle, any mouse should go to desktop or whatever is there behind it. Using borderless and transparent m

Re: Arbitrary Shaped Windows

2011-04-29 Thread Laurent Daudelin
On Apr 29, 2011, at 09:46, Abhinav K Tyagi wrote: > Hi, > > How can i create an arbitrary shaped window? Mouse events should be > handled in the shape only and not the rectangular window portion. > For Ex. If my window is circular, then outside the circle, any mouse should > go to desktop or what

Re: Arbitrary Shaped Windows

2011-04-29 Thread Philip Ershler
On Apr 29, 2011, at 12:00 PM, Laurent Daudelin wrote: > On Apr 29, 2011, at 09:46, Abhinav K Tyagi wrote: > >> Hi, >> >> How can i create an arbitrary shaped window? Mouse events should be >> handled in the shape only and not the rectangular window portion. >> For Ex. If my window is circular,

Local vs non-local drags and -ignoreModifierKeysWhileDragging

2011-04-29 Thread Kyle Sluder
I'm working on an application that uses a master-detail view. The detail area includes a text area for freeform notes (each item can have multiple notes). The note area parses references to other items (a URL of the form "item:///item-number") and turns them into clickable links. Right now, draggi

Re: Arbitrary Shaped Windows

2011-04-29 Thread Abhinav K Tyagi
Hi Laurent, I too agree with you on this. The circular shape i just mention as a case. It can be any shape. Its just an idea.. good or bad will depend on how and when one finds its application. I remember that MSVC++ had a similar thing to set the "shape" of the window but here how to do

Re: Arbitrary Shaped Windows

2011-04-29 Thread John Joyce
On Apr 29, 2011, at 11:46 AM, Abhinav K Tyagi wrote: > Hi, > > How can i create an arbitrary shaped window? Mouse events should be > handled in the shape only and not the rectangular window portion. > For Ex. If my window is circular, then outside the circle, any mouse should > go to desktop or

Re: Arbitrary Shaped Windows

2011-04-29 Thread Fritz Anderson
On 29 Apr 2011, at 11:46 AM, Abhinav K Tyagi wrote: > How can i create an arbitrary shaped window? Look for the sample project "RoundTransparentWindow." I found it by typing "round window" in the Documentation organizer in Xcode 4. The Documentation browser in Xcode 3 should turn up the same th

Re: Arbitrary Shaped Windows

2011-04-29 Thread Bhatnagar, Arvin
Laurent, Look into subclassing the view and setting up a tracking area. Thanks, Arvin On 4/29/11 2:16 PM, "Abhinav K Tyagi" wrote: >Hi Laurent, > >I too agree with you on this. The circular shape i just mention as a >case. >It can be any shape. > >Its just an idea.. good or bad will depend on

Re: Arbitrary Shaped Windows

2011-04-29 Thread Hank Heijink (Mailinglists)
Have you looked at this? http://cocoawithlove.com/2008/12/drawing-custom-window-on-mac-os-x.html Hank On Apr 29, 2011, at 2:16 PM, Abhinav K Tyagi wrote: > Hi Laurent, > > I too agree with you on this. The circular shape i just mention as a case. > It can be any shape. > > Its just an idea..

Customizing UIActionSheet button accessibility labels.

2011-04-29 Thread Eloy Duran
I have been unable to figure out if and how to customize the labels of the buttons in a UIActionSheet. I would have expected it would implement the UIAccessibilityContainer protocol, but it doesn't return useful data for any of the protocol's methods… What am I missing? Eloy

Binding multiple NSTableView and NSPopupButton to an NSArrayControler

2011-04-29 Thread Lorenzo Thurman
I have an NSTableView column bound to an NSArrayController which itself is bound to an NSMutableArray. The mutable array resides in a different XIB. The data is displayed as expected, but when I remove an item, although it does disappear from the table, the change is not written to disk when the ap

Re: Binding multiple NSTableView and NSPopupButton to an NSArrayControler

2011-04-29 Thread Quincey Morris
Your description of the problem is a bit fuzzy. Let me nitpick at your description -- it may be that if you straighten out your terminology you'll solve your problem: On Apr 29, 2011, at 12:56, Lorenzo Thurman wrote: > I have an NSTableView column bound to an NSArrayController which itself > is

Re: Aliases with NDAlias not appearing where I tell them to be.

2011-04-29 Thread Sean McBride
On Fri, 29 Apr 2011 12:31:07 -0400, Kevin Muldoon said: >I'm still fuzzy on the real function of 'fromPath:'. It's equiv in >FSNewAlias() appears to be fromFile which is defined as 'A pointer to the >starting point for a relative search...' That's right. >and could be given a NULL value (at >lea

Re: FSCatalogInfo's dataPhysicalSize shows constant wrong size for all files on a network drive?

2011-04-29 Thread Laurent Daudelin
On Apr 29, 2011, at 11:10, Oleg Krupnov wrote: > Hi, > > My program determines sizes of all files in a particular folder on > some drive. I use FSCatalogInfo + FSGetCatalogInfoBulk. I am > interested in physical size, so I use the dataPhysicalSize field. > > My code works fine on pretty much all

delete entries in a tableView with the backspace-key on the keyboard

2011-04-29 Thread Martin Batholdy
Hi, I have a tableView and a MutableArray as DataSource. Below the tableView I have a delete button to delete selected entries. That works fine. The entries disappear when pressing the delete button. Now I would like to achieve the same effect with a press on the backspace-button. How can I l

Re: delete entries in a tableView with the backspace-key on the keyboard

2011-04-29 Thread Sean McBride
On Fri, 29 Apr 2011 23:13:53 +0200, Martin Batholdy said: >Below the tableView I have a delete button to delete selected entries. >That works fine. The entries disappear when pressing the delete button. > >Now I would like to achieve the same effect with a press on the >backspace-button. > >How ca

iOS internaltional dialing plan

2011-04-29 Thread Fluffy D. Bunny
Hi All, I just inherited a new iphone app that is being used internationally. This app has an issue where non-us users are unable to click on numbers in the app and have them dial. The numbers are formatted such as +44 00 00 etc. It takes the number strips the spaces, formatting and plus sign

Re: Scroll view within scroll view blocks scrolling

2011-04-29 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 4/28/11 8:27 PM, Indragie Karunaratne wrote: > Notice that in my code I'm making a call to super, so using the above > code, scrolling inside the text view would scroll both the parent > scroll view and the text view scroll view at the same time. In

Changing UISwitch text

2011-04-29 Thread Jon Sigman
Is there a straightforward way to change the text on the UISwitch ("ON" and "OFF") to something else? Alternatively, is there a way for a UIButton to act like a toggle (it stays highlighted until touched again)? iOS 4.3 ___ Cocoa-dev mailing list (Coco

Re: Changing UISwitch text

2011-04-29 Thread Luke Hiesterman
Neither of those things are possible with UISwitch. You'd have to write your won UIControl subclass. Luke On Apr 29, 2011, at 4:29 PM, Jon Sigman wrote: > Is there a straightforward way to change the text on the UISwitch ("ON" and > "OFF") to something else? Alternatively, is there a way for a

Re: Changing UISwitch text

2011-04-29 Thread Dave DeLong
On Apr 29, 2011, at 4:29 PM, Jon Sigman wrote: > Is there a straightforward way to change the text on the UISwitch ("ON" and > "OFF") to something else? No, there is not. UISwitch is not customizable. > Alternatively, is there a way for a UIButton to act > like a toggle (it stays highlighted

Re: delete entries in a tableView with the backspace-key on the keyboard

2011-04-29 Thread Peter Lübke
Am 29.04.2011 um 23:19 schrieb Sean McBride: See: Sean, is there a special reason why the sample code is working with [event characters]? I've merely been doing if ( [event keyCode] == 51) { ... } to

Re: Changing UISwitch text

2011-04-29 Thread Roger Dalal
Jon: UISwitch can not be customized. This question was asked a few weeks ago, and I recommended http://osiris.laya.com/projects/rcswitch/ by Sascha Hoehne and Robert Chin. If you wish to use a UIButton as a toggle, just change the button's image property to alternating states, as in: if (con

Re: Changing UISwitch text

2011-04-29 Thread Jon Sigman
Thanks Peter, Dave, Roger. These are all good approaches! From: Roger Dalal To: Jon Sigman Cc: cocoa-dev@lists.apple.com Sent: Fri, April 29, 2011 4:41:36 PM Subject: Re: Changing UISwitch text Jon: UISwitch can not be customized. This question was asked a

Re: Changing UISwitch text - correction

2011-04-29 Thread Roger Dalal
CORRECTION: Obviously, that would be condition = NO; condition = YES; How embarrassing. Sorry list. Roger On Apr 29, 2011, at 7:41 PM, Roger Dalal wrote: > Jon: > > UISwitch can not be customized. This question was asked a few weeks ago, and > I recommended http://osiris.laya.com/projects/

Re: Using affine transforms

2011-04-29 Thread Graham Cox
On 30/04/2011, at 1:01 AM, McLaughlin, Michael P. wrote: > appeared to have applied the transform to the path linewidth as well. Is > this how it is supposed to work? Yes. A transform scales the whole drawing coordinate system, so the stroke width is scaled as well. > Since this would seem to