Re: Custom NSSlider

2011-06-16 Thread Vyacheslav Karamov
I'm currently support project which use custom NSSlider. 16-Jun-11 04:18, Nick пишет: Hello I am wondering if there are any free custom NSSlider controles available with changed knob and trackbar images? The ones similar to QuickTime Player and iTunes (for a player application). Does everyone i

Re: Custom NSSlider

2011-06-16 Thread Nick
Basically I was looking for some freely available fancy controls, that are suitable for players. Like AlphaControls for Delphi (for Windows) or something. Specifically for custom sliders. (I am writing a custom player that can play files over network, and, on the movie view, when the user moves t

Hiding/Showing UIAgent application window

2011-06-16 Thread Nava Carmon
Hi, I have an UIAgent application with one window. I want to hide/show it from another application.How do I do it with cocoa? Seems like hide/unhide methods of NSRunningApplication doesn't affect UIAgent processes. Thanks Nava Carmon ncar...@mac.com "Think good and it will be good!"

Re: Custom NSSlider

2011-06-16 Thread Vyacheslav Karamov
Look towards BWToolkit. But note: you should better use XCode 3.2.6, not 4.0.2, cause XCode 4.x lack of plug-ins support. 16-Jun-11 11:20, Nick пишет: Basically I was looking for some freely available fancy controls, that are suitable for players. Like AlphaControls for Delphi (for Windows) o

NSConnection - both ways

2011-06-16 Thread Nava Carmon
Hi, I'd like to establish connection between two processes. I'm using NSConnection from the server side: Server Process NSConnection *theConnection; //theConnection = [NSConnection defaultConnection]; theConnection = [[NSConnection alloc] init]; [theConnec

Re: After Autoreleasing Still Getting Leaked

2011-06-16 Thread Bing Li
Dear Conrad, Jens, Tony, Scott, Wade and all, I appreciate so much for your replies. I learn a lot from the interactions with you. Since I am new, your patience is so valuable to me! I just got the problem. At least, right now, there is no the leak. When receiving messages, I put them into a queu

FSEvents - handling kFSEventStreamEventFlagRootChanged flag

2011-06-16 Thread Ajay Sabhaney
Hello, I have setup an FSEventStream so that I can monitor a directory for file changes. If the root directory that is being watched is moved/renamed, I want to be able to keep monitoring the directory. I am able to get the new path of the root directory, however I am unsure of how to monitor

Re: NSConnection - both ways

2011-06-16 Thread Ken Thomases
On Jun 16, 2011, at 3:40 AM, Nava Carmon wrote: > I'd like to establish connection between two processes. I'm using > NSConnection from the server side: > And it works ok. My question is how do I establish the connection to both > ways, so I can get the distributed object of the client in serve

Re: NSConnection - both ways

2011-06-16 Thread Nava Carmon
I tried to pass my client object as is but it didn't work for some reason. Should I wrap it somehow? Thanks On Jun 16, 2011, at 3:20 PM, Ken Thomases wrote: > On Jun 16, 2011, at 3:40 AM, Nava Carmon wrote: > >> I'd like to establish connection between two processes. I'm using >> NSConnection

Re: After Autoreleasing Still Getting Leaked

2011-06-16 Thread Bing Li
Dear Marcus, Thanks so much for your reply! Your experiences on encoding on network helps me a lot! NSOperationQueue is not a technique particularly for networking. It is an asynchronous programming solution. Using it, developers are not required to take care of a lot of details of threading. B

Re: NSConnection - both ways

2011-06-16 Thread Ken Thomases
On Jun 16, 2011, at 7:26 AM, Nava Carmon wrote: > I tried to pass my client object as is but it didn't work for some reason. Didn't work in what way? What exactly did you try? What results did you expect, what results did you actually get, and how did they differ? > Should I wrap it somehow?

How to remove the NSCell border in an NSTableView that hasFocus

2011-06-16 Thread Alexander Reichstadt
Hi, i have an NSCell subclass in an NSTableView. It's highlight color should be consistent regardless of the table view's focus state. It works, but I have one thing remaining I can't figure Out. While the table view has no focus the cells look fine. But when it has focus the cell gets a border

Re: NSConnection - both ways

2011-06-16 Thread Nava Carmon
I call from client [self.remoteObject registerClient:self]; Then in the server in function - (void) registerClient:(id)objectProxy { self.remoteClient = objectProxy; // remoteClient is defined as retained property } // somewhere in the code after registration ... [self.remoteClient foo

How to set special keys for menuitems.

2011-06-16 Thread Kartik Reddyreddy
Hi, I want to set the menuitem's shortcut to pageup and pagedown keys. How do i do it in Objective-C ?? I am setting the keyequivalent in code, cannot use Interface Builder. Do i have to use the Unicode values to create a NSString and pass it to NSMenuItem's setKeyEquivalent ?? If so could anyone

Re: NSConnection - both ways

2011-06-16 Thread Ken Thomases
On Jun 16, 2011, at 9:29 AM, Nava Carmon wrote: > I call from client [self.remoteObject registerClient:self]; > > Then in the server in function > > - (void) registerClient:(id)objectProxy > { > self.remoteClient = objectProxy; // remoteClient is defined as retained > property Have you l

Re: FSEvents - handling kFSEventStreamEventFlagRootChanged flag

2011-06-16 Thread Tony Romano
The way to handle adding a new directory is to basically tear down the stream and recreate it adding the new directory. You won't lose any events while your recreating the stream due to the caching done behind the scenes. When I stop a stream, I do the following: -(void) streamDestroy { FSEvent

Re: NSDragOperation for operationNotAllowedCursor !!

2011-06-16 Thread Raleigh Ledet
File a radar asking for a new NSDragOperation, NSDragOperationNotAllowed. In the meantime, you can create your own cursor with your own cursor image and set it manually. You'll be fighting the system a bit, but if you time it right, you should be ok. -raleigh On Jun 15, 2011, at 7:47 AM, Nares

Re: Drawing noise in Cocoa (preferably fast)

2011-06-16 Thread Stephen Blinkhorn
Hi Ken, On 15 Jun 2011, at 19:24, Ken Tozier wrote: Just curious, what kind of speed are you getting with the CIImage methods? I saw the usefulness of generating random images for my own purposes and polished the posted code a bit today. It was generating 100 million pixel images (10,000 x

EDMessage, Symlinks & zip files

2011-06-16 Thread Kevin Muldoon
Hello all, After importing the EDMessage Framework and adding a build phase to copy the framework, I found it worked very well. However, when I attempted to .zip the compiled app to send via email, my Finder hiccuped ( All Finder windows closed at once and no zip file to be seen). I dec

Re: Custom NSSlider

2011-06-16 Thread Stephen Blinkhorn
On 15 Jun 2011, at 19:18, Nick wrote: Hello I am wondering if there are any free custom NSSlider controles available with changed knob and trackbar images? The ones similar to QuickTime Player and iTunes (for a player application). Does everyone implement them from scratch by subclassing th

Re: NSDragOperation for operationNotAllowedCursor !!

2011-06-16 Thread Kyle Sluder
On Thu, Jun 16, 2011 at 9:29 AM, Raleigh Ledet wrote: > In the meantime, you can create your own cursor with your own cursor image > and set it manually. You'll be fighting the system a bit, but if you time it > right, you should be ok. Yea, this is what you're gonna have to do. NSDragOperation

Re: Interface item validation through first responder

2011-06-16 Thread Luc Van Bogaert
On 15 Jun 2011, at 23:12, Quincey Morris wrote: > On Jun 15, 2011, at 13:12, Luc Van Bogaert wrote: > > As I said above, you aren't logging the responder chain, you're logging the > nextResponder tree, and not even all of that. Plus, all three tree structures > change over time as the UI is pr

Re: After Autoreleasing Still Getting Leaked

2011-06-16 Thread Jens Alfke
On Jun 15, 2011, at 7:01 PM, Tony Romano wrote: > TCP does NOT guarantee you will get the WHOLE PACKET on one receive call. > BEFORE you PROCESS any data, you need to know that you have ALL the data. > It may work MOST of the TIME, but there are times when it won't and your > code WILL FAIL. You

Re: How to set special keys for menuitems.

2011-06-16 Thread Jens Alfke
On Jun 16, 2011, at 7:34 AM, Kartik Reddyreddy wrote: > Do i have to use the Unicode values to create a NSString and pass it to > NSMenuItem's setKeyEquivalent ?? I think so. > If so could anyone point me to the document with Unicode values for keys. NSEvent.h — for example, you want NSPageUpF

Re: After Autoreleasing Still Getting Leaked

2011-06-16 Thread Tony Romano
No, I meant to use packet since I was speaking in terms at the protocol level. In either case, your explanation is helpful to Bing but I fear he is new to socket level programming and will stumble with other issues as well. Your advice to use some framework is what he should follow. Tony Romano

pagingEnabled on NSScrollView?

2011-06-16 Thread Leonardo
Hi, I would like to reach the same effect as UIScrollView.pagingEnabled, but on an NSScrollView. Can that be done? If not, which technique should I use? I thought to deal with NSAnimationContext to move the scrollView's document with scrollPoint: when a scrolling ends (the finger stops dragging on

How to get the code responsible for high CPU utilization

2011-06-16 Thread Sandeep
Hi All, This might be a weird query. but is it possible some how to get the exact line of code causing high cpu utilization. Like in case of the Instrument Leaks we are able to make out the lines of code in our application that is causing the memory leaks. In similar way is there any instrument

Re: pagingEnabled on NSScrollView?

2011-06-16 Thread Raleigh Ledet
Hi Leonardo, I'm not familiar with UIScrollView.pagingEnabled, so you'd have to tell me what it does. Also, how are you determining when the finger stops dragging on the trackpad? -raleigh On Jun 16, 2011, at 2:57 PM, Leonardo wrote: > Hi, > I would like to reach the same effect as UIScrollVi

Re: How to get the code responsible for high CPU utilization

2011-06-16 Thread Sean McBride
On Thu, 16 Jun 2011 15:18:06 -0700, Sandeep said: >This might be a weird query. but is it possible some how to get the >exact line of code causing high cpu utilization. Like in case of the >Instrument Leaks we are able to make out the lines of code in our >application that is causing the memory le

Re: How to get the code responsible for high CPU utilization

2011-06-16 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 6/16/11 3:18 PM, Sandeep wrote: > Hi All, > > This might be a weird query. but is it possible some how to get the > exact line of code causing high cpu utilization. Like in case of the > Instrument Leaks we are able to make out the lines of code in

Re: pagingEnabled on NSScrollView?

2011-06-16 Thread Quincey Morris
On Jun 16, 2011, at 14:57, Leonardo wrote: > I would like to reach the same effect as UIScrollView.pagingEnabled, but on > an NSScrollView. Can that be done? > > If not, which technique should I use? > I thought to deal with NSAnimationContext to move the scrollView's document > with scrollPoint:

Re: Drawing noise in Cocoa (preferably fast)

2011-06-16 Thread Ken Tozier
On Jun 16, 2011, at 12:34 PM, Stephen Blinkhorn wrote: > A quick test on a 2GHz iMac takes at least twice as long 4.5 seconds to > generate a 10,000 X 10,000 CGLayer of noise. > > Stephen Thanks. Difference could just be the processor. My laptop has a 2.4 GHz core i5__

So... we can't use UIWebView (with a delegate) on a page that's pushed onto a UINavigationController stack?

2011-06-16 Thread G S
My app is crashing after the user presses the Back button in the navbar to dismiss a page that has a UIWebView on it, before the Web view has finished loading. The Web view subsequently tries call its delegate to say that the content has finished loading. In the Apple docs I see this: "Important

Re: So... we can't use UIWebView (with a delegate) on a page that's pushed onto a UINavigationController stack?

2011-06-16 Thread Jens Alfke
On Jun 16, 2011, at 7:15 PM, G S wrote: > The delegate for the UIWebView is set up in the XIB file; it's pretty > hokey to have to intervene in code to then disassociate the view from > its delegate. If the delegate object is being dealloced, it needs to clear the delegate reference to it. I d

Runloop doesnt get fired when scheduled with the stream

2011-06-16 Thread Sivakumar Kandappan
Hello All I`m currently doing a FTP client for my project. I`ve scheduled the readstream/writeStream with the runloop to read the file from the harddisk/write the file to the harddisk and send it to the server. After uploading and downloading the file I unschedule the stream from the runloop. This

Re: Drawing noise in Cocoa (preferably fast)

2011-06-16 Thread Uli Kusterer
On 17.06.2011, at 03:08, Ken Tozier wrote: > On Jun 16, 2011, at 12:34 PM, Stephen Blinkhorn wrote: >> A quick test on a 2GHz iMac takes at least twice as long 4.5 seconds to >> generate a 10,000 X 10,000 CGLayer of noise. >> >> Stephen > > Thanks. Difference could just be the processor. My lapt

Re: Custom NSSlider

2011-06-16 Thread Uli Kusterer
On 16.06.2011, at 03:18, Nick wrote: > I am wondering if there are any free custom NSSlider controles available > with changed knob and trackbar images? > The ones similar to QuickTime Player and iTunes (for a player application). > Does everyone implement them from scratch by subclassing the cell