magic trackpad

2011-04-25 Thread Charlie Dickman
I have instrumented a view in my application to respond to trackpad gestures. I am programming on a Mac Pro using a magic trackpad for gestures. The program gets no messages from gestures made on the trackpad. The mouse responds to trackpad finger moves and trackpad clicks. Is there a way to se

Re: BSD TCP Programming on iPad

2011-04-25 Thread Marcus Karlsson
Dear all, I am planning to program with BSD TCP on iPad. The motivation to do that is that a P2P model is expected. I think the network techniques, such as Web Services and Push Notification, supported by Cocoa do not meet the requirements. My experiences on iPad are not sufficient. I am not sur

Re: NSColorWell inside a custom NSCell

2011-04-25 Thread Graham Cox
On 24/04/2011, at 6:01 AM, Ken Ferry wrote: > That works, but if the stock NSColorWell drawing and behavior is already what > you want, you can use normal NSColorWell objects as subviews. Your uber view > might be in charge of positioning them. > > But definitely, if you don't need to put thi

NSOpenPanel

2011-04-25 Thread Rick C.
Hello, I'm thinking the answer is no but just to double-check is there any way to get another button into an NSOpenPanel? I only see the possibility for the default and cancel buttons unless I'm overlooking something. Thanks! rc___ Cocoa-dev mailin

Re: NSOpenPanel

2011-04-25 Thread Thomas Davie
On 25 Apr 2011, at 12:55, Rick C. wrote: > Hello, > > I'm thinking the answer is no but just to double-check is there any way to > get another button into an NSOpenPanel? I only see the possibility for the > default and cancel buttons unless I'm overlooking something. Thanks! See -setAccess

Re: BSD TCP Programming on iPad

2011-04-25 Thread Bing Li
Dear Marcus, Could you tell me which features are not available when using BSD sockets on iOS? Although I would like to use CFNetwork APIs, I cannot find enough materials to learn how to use them. The guide from apple.com is too limited to be useful. Could you provide me with other resources about

@class create a new instance?

2011-04-25 Thread Rodrigo Zanatta Silva
HI, someone said to me that *@class* directive create a new instance of the class automatic. I tried to find information about this, but didn't found. For me, @class is only to solve cyclic includes. There are any side effect using it? The object variable is the same in this 2 example below, or th

Re: BSD TCP Programming on iPad

2011-04-25 Thread John Joyce
Have you looked at the sample code? https://developer.apple.com/library/ios/#samplecode/SimpleNetworkStreams/Listings/Read_Me_About_SimpleNetworkStreams_txt.html%23//apple_ref/doc/uid/DTS40008979-Read_Me_About_SimpleNetworkStreams_txt-DontLinkElementID_8 On Apr 25, 2011, at 10:00 AM, Bing Li wrot

Re: BSD TCP Programming on iPad

2011-04-25 Thread John Pannell
You might also want to look into the GameKit APIs present in iOS... by going lower level, you'd likely be re-inventing the functionality these APIs provide already. There is extensive documentation on GameKit and its use within the Apple docs. I might also recommend the following books: http:

Re: @class create a new instance?

2011-04-25 Thread Kyle Sluder
On Mon, Apr 25, 2011 at 8:02 AM, Rodrigo Zanatta Silva wrote: > HI, someone said to me that *@class* directive create a new instance of the > class automatic. I tried to find information about this, but didn't found. They were wrong. > For me, @class is only to solve cyclic includes. There are a

Re: BSD TCP Programming on iPad

2011-04-25 Thread Keith Duncan
On 25 Apr 2011, at 16:00, Bing Li wrote: > Dear Marcus, > > Could you tell me which features are not available when using BSD sockets on > iOS? Although I would like to use CFNetwork APIs, I cannot find enough > materials to learn how to use them. The guide from apple.com is too limited > to be

Re: @class create a new instance?

2011-04-25 Thread Rodrigo Zanatta Silva
Ok, my friend is wrong. I thought that. 2011/4/25 Patrick Mau > Hallo Rodrigo > > The "@class" statement is a forward declaration to tell the compiler that > the class exists. > It provides no additional information to the compiler, meaning that code > completion will not work. > > You probably

Re: magic trackpad

2011-04-25 Thread Raleigh Ledet
Charlie, You have to explicitly opt into touches, but not the other gestures. Though, I wouldn't opt into touches unless you really really need to go that route. The other gestures are targeted gestures. They are sent to the the view under the cursor and then follow the responder chain from the

Re: magic trackpad

2011-04-25 Thread Raleigh Ledet
The view does not need to be key. It only needs to be in the key/main window and the mouse cursor needs to be over the view. I don't know why you are worried about mouse events. If you are performing a gesture, then you will not get ouse events and the cursor will not move until you complete th

What is loaded when a static library is linked? (was: Xcode 4 auto-importing Objective C categories from static library)

2011-04-25 Thread Bradley S. O'Hearne
The subject of this thread, and discussion of it both here and elsewhere, has suggested a closely related question: When a static library is linked in, what classes within the static library are loaded, only the referenced classes, or all of them? One quick note -- regarding the -all_load link

UIPickerView

2011-04-25 Thread koko
I haven't found sample code (if someone can point me to an example) ... A current Windows app utilizes three pop up lists for the user to make a selection List 1 is the macro selection List 2 and List 3 refine the selection The combination of three selections determines an answer. Now I unders

Re: UIPickerView

2011-04-25 Thread Zajkowski, James
Without more detail I'd suggest perhaps a nav controller-style app with table views. --Jim On 4/25/11 2:47 PM, "koko" wrote: >I haven't found sample code (if someone can point me to an example) ... > >A current Windows app utilizes three pop up lists for the user to make a >selection > >List 1

Re: UIPickerView

2011-04-25 Thread Luke Hiesterman
You probably want to display 1 picker at a time, with a way for the user to navigate from one to the other. See what happens if you go to this page on iOS and tap on one of the selection boxes. http://www.google.com/advanced_search Luke On Apr 25, 2011, at 11:47 AM, koko wrote: > I haven't fo

Re: UIPickerView

2011-04-25 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 4/25/11 11:47 AM, koko wrote: > I haven't found sample code (if someone can point me to an example) ... > > A current Windows app utilizes three pop up lists for the user to make a > selection > > List 1 is the macro selection > List 2 and List 3

Re: UIPickerView

2011-04-25 Thread koko
Just dawned on me 1. The app only runs in landscape mode 2. One UIPickerView with 3 components 3. Make selection for each of the three components 4. display below the UIPickerView the answer 5. There is a default selection for the three components 6. When the app quits the last setting of th

Re: NSOpenPanel

2011-04-25 Thread Rick C.
Thanks Bob I was thinking that was the only way! On Apr 25, 2011, at 8:10 PM, Thomas Davie wrote: > > On 25 Apr 2011, at 12:55, Rick C. wrote: > >> Hello, >> >> I'm thinking the answer is no but just to double-check is there any way to >> get another button into an NSOpenPanel? I only see t

viewWillDisappear not being called

2011-04-25 Thread Jeffrey Walton
Hi All, According to the documentation in the headers: // UIViewController.h // Called when the view is dismissed, covered or otherwise hidden. - (void)viewWillDisappear:(BOOL)animated; And Apple's documentation [1]: Notifies the view controller that its view is about to be dism

Re: viewWillDisappear not being called

2011-04-25 Thread Heath Borders
I've seen this behavior also, specifically on iOS 3.1 while using a UIViewController inside a UINavigationController inside a UITabBarController. -Heath Borders heath.bord...@gmail.com Twitter: heathborders http://heath-tech.blogspot.com On Mon, Apr 25, 2011 at 9:59 PM, Jeffrey Walton wrote: >

Re: viewWillDisappear not being called

2011-04-25 Thread Alex Kac
The view is not being hidden - the whole app is. viewWillDisappear is called when within the life-cycle of a view, its actually about to get removed from the visible hierarchy. There are two life-cycles you are mixing up: app lifecycle and view controller life cycle. The two do not mix. On Ap

NSURLCache

2011-04-25 Thread Rick Mann
I'm trying to use an NSURLCache. I want to use one I create, just for this, rather than make it the shared cache. (I'm also using the MVCNetworking classes to load resources, so I don't have a lot of access to the underlying NSHTTPURLRequests, etc.) What I'm seeing is that after storing into th

iOS - AudioSession Category to play in sleep mode

2011-04-25 Thread Sasikumar JP
Hi, I am working on streaming audio player application for iOS. currently i am experimenting with AudioQueue and AudioUnit for playback. Both works fine in the normal condition. But AudioUnit playback stopped playing when device (ipod touch 2nd gen) goes to sleep mode, where as it works fine

Re: viewWillDisappear not being called

2011-04-25 Thread Jeffrey Walton
On Mon, Apr 25, 2011 at 11:04 PM, Heath Borders wrote: > I've seen this behavior also, specifically on iOS 3.1 while using a > UIViewController inside a UINavigationController inside a > UITabBarController. YES - that is nearly my setup (iOS 4.3.2). I don't have the intermediate UINavigationContro

Re: viewWillDisappear not being called

2011-04-25 Thread Heath Borders
> It sure would have been helpful if viewWillDisappear was sent as > documented. When the home button is pressed, and the home screen is > presented, the view has clearly disappeared (no offense Alex). I was seeing this when switching tabs, not when the home button was pressed. -Heath Borders hea

Re: viewWillDisappear not being called

2011-04-25 Thread Evadne Wu
It seems like you need to do something when the app resigns from the foreground — if that is the case just listen for UIApplicationDidEnterBackgroundNotification from that view controller? It (kind of) makes things easy that way. As the app enters background, it surely has “disappeared” but no

Re: NSURLCache

2011-04-25 Thread Jerry Krinock
On 2011 Apr 25, at 21:03, Rick Mann wrote: > One of the other things it's doing differently than I do is it creates an > NSURLRequest using a cache policy. I just create a plain NSURLRequest. Is > that a necessary step? The default behavior I have seen, which is what you get with your "plain"