Re: Long delay between viewWillAppear: and viewDidAppear:

2012-10-12 Thread Rick Mann
Hm, sure enough, my main thread seems to be tied up on something. Not sure why. Stopping it in the debugger just shows mach_msg_trap (waiting for events). On Oct 12, 2012, at 20:51 , Rick Mann wrote: > What might account for a really long delay (a minute) between viewWill and > viewDidAppear,

Long delay between viewWillAppear: and viewDidAppear:

2012-10-12 Thread Rick Mann
What might account for a really long delay (a minute) between viewWill and viewDidAppear, in the context of presenting a simple modal view controller? 2012-10-12 20:42:32.552 MPTest[52618:1303] -[LoginViewController viewWillAppear:] 2012-10-12 20:43:33.119 MPTest[52618:c07] -[LoginViewController

Re: Getting a dotted font from a regular font

2012-10-12 Thread Graham Cox
On 01/10/2012, at 11:02 AM, Andres Kievsky wrote: > Then I would render each font in a small, low resolution bitmap (say, 10x10) > and then use that bitmap to find the centres around which to draw circles. > > So if you have a bit set at (5,5) in the low res bitmap, and you want to > render i

Re: NSTextField not updated during large process

2012-10-12 Thread Koen van der Drift
Man, I thought I had this all working, and after a few days of doing other stuff, it is back to my original issue. I am now updating my textfield as follows, so no matter from where it is called, it will always be updated on the main thread: - (void)updateStatus: (NSString *)status { NSLo

PDF icons scaled wrong on retina displays

2012-10-12 Thread David Catmull
As recommended, I used PDF images for some of my button icons with the expectation that they would look nice on retina displays. They are nice and smooth, but they're also scaled a bit smaller than on a regular display. Example: http://dl.dropbox.com/u/10822169/Screen%20Shot%202012-10-12%20at%20

Re: Self contained command line tool

2012-10-12 Thread Kyle Sluder
On Fri, Oct 12, 2012, at 11:11 AM, Gene Crucean wrote: > There are lot's of reasons for this. You can drag and drop a file to > perform some automated task on it, or just automate some task. You can > also > use cron jobs to launch the app. Just the other day I whipped up a tiny > app > that lets m

Re: Self contained command line tool

2012-10-12 Thread davelist
I'm not certain this is what you want, but could you use Automator to create an app that runs your executable as a shell script? I don't know if that will give you a file you drag onto it as a command line parameter or not. Dave On Oct 12, 2012, at 2:11 PM, Gene Crucean wrote: > There are lo

Re: Self contained command line tool

2012-10-12 Thread Gene Crucean
There are lot's of reasons for this. You can drag and drop a file to perform some automated task on it, or just automate some task. You can also use cron jobs to launch the app. Just the other day I whipped up a tiny app that lets me drag and drop files/folders onto my app's icon to use 7zip for ar

iOS 6 changes in CATextLayer text drawing

2012-10-12 Thread Matt Neuburg
> (2) CATextLayer in iOS 6 is drawing the text to a different baseline (lower). > To put it another way, there is now more space between the top of the text > and the top of the layer. This means that I must make my CATextLayers taller > in order to encompass the whole text height. Why the chan

Re: Self contained command line tool

2012-10-12 Thread Kyle Sluder
On Oct 10, 2012, at 3:24 PM, Charlie Dickman <3tothe...@comcast.net> wrote: > I have created a command line tool that executes correctly in the debugger. > How do I get the built binary to execute independently without starting the > Terminal app. I'm sorry, your question doesn't make sense. Yo

Re: How to programmatically detect that Mission Control is running?

2012-10-12 Thread Kyle Sluder
On Oct 12, 2012, at 3:12 AM, Ken Thomases wrote: > >> This is a problem for me because I don't receive keyUp >> or mouseUp events if I start Mission Control with a mouse button or a key >> held down and my application will behave as if that mouse button or key is >> held down. > > First, it see

Re: copy in WebView

2012-10-12 Thread Kyle Sluder
On Oct 12, 2012, at 1:47 AM, "Gerriet M. Denkmann" wrote: > > I managed (using: ) to get the > selection and modify it (removing unwanted characters) but I do not know how > to put the resulting string onto the clipboard. That should be sufficient to get the right string on the clipboard. You

Re: custom slider for video trimming application

2012-10-12 Thread Muthulingam Ammaiappan
Hi All, i have successfully implemented the trim slider... here is my implementation details: step1: i have created the custom NSView step2: i have added the NSSlider,Start Trim Thumb,End Trim Thumb step3: implemented the Mouse Down,Mouse Dragged,Mouse Up Events i am wondering ... cocoa-dev@

Re: custom slider for video trimming application

2012-10-12 Thread Robert Martin
Try googling: cocoa double slider - and look at the first hit! On Sep 26, 2012, at 12:15 AM, Muthulingam Ammaiappan wrote: > Hi Friends, > > i am developing the video trimming application in cocoa /mac os x 10.7.4 > and xcode 4.3.3...(i am newbie to the cocoa and mac) > > my current requ

Re: How to programmatically detect that Mission Control is running?

2012-10-12 Thread Ken Thomases
On Oct 2, 2012, at 2:06 AM, Daiwei Li wrote: > When Mission Control runs, it prevents applications from receiving keyboard > and mouse events. It also leaves the last application running thinking that > it still has focus. It does. Mission Control is part of the management of the desktop environ

Re: static void declaration in apple example code

2012-10-12 Thread John McCall
On Oct 12, 2012, at 12:46 AM, Dave Keck wrote: >> staticvoid *AVSPPlayerItemStatusContext = &AVSPPlayerItemStatusContext; > > This declares a unique pointer, whose value is defined as the address in > memory where the pointer lives. > > This technique can be useful when you need a value that's r

Re: File browser widget

2012-10-12 Thread Mike Abdullah
NSOpenPanel. On 27 Sep 2012, at 12:39, Qiang Y wrote: > Good morning everyone, > > I need a file browser control/widget for my project under osx. Does anyone > know if cocoa provides one for developers to user in their own applications? ___ Cocoa-d

Re: copy in WebView

2012-10-12 Thread Gerriet M. Denkmann
On 12 Oct 2012, at 00:19, "Gerriet M. Denkmann" wrote: > > On 12 Oct 2012, at 00:11, Kyle Sluder wrote: > >> On Oct 11, 2012, at 10:00 AM, "Gerriet M. Denkmann" >> wrote: >> >>> >>> On 11 Oct 2012, at 23:45, Kyle Sluder wrote: >>> On Oct 11, 2012, at 8:26 AM, "Gerriet M. Denkmann"

Re: NSTableView how to sort rows after modify datasource array

2012-10-12 Thread Peter
Am 02.10.2012 um 11:56 schrieb Евсеев Алексей: > sorry for my english > > I have a form with NSTableView and two button "add" and "remove" > > "Add" button add's item into datasource array. And new row will show only > after restart program. > > "Remove" button remove item from array. While

Re: Self contained command line tool

2012-10-12 Thread Dave Keck
I would create a new Cocoa application using Xcode's template, delete all the .m files (except main.m), and put your code in main.m. You should be able to delete most of the resources as well, such as MainMenu.xib and InfoPlist.strings. Your app will of course not have any interface or menu bar,

Re: static void declaration in apple example code

2012-10-12 Thread Kyle Sluder
On Sat, Sep 22, 2012, at 04:46 PM, Boris Dobroslav wrote: > Hi, > > I'm perplexed by one line that appears in the file AVSPDocument.h from > the apple example code project AVSimplePlayer: > > staticvoid *AVSPPlayerItemStatusContext = &AVSPPlayerItemStatusContext; > > This definition appears o

Re: static void declaration in apple example code

2012-10-12 Thread Dave Keck
> staticvoid *AVSPPlayerItemStatusContext = &AVSPPlayerItemStatusContext; This declares a unique pointer, whose value is defined as the address in memory where the pointer lives. This technique can be useful when you need a value that's reasonably assured to be unique -- i.e., this technique gu

Re: static void declaration in apple example code

2012-10-12 Thread Greg Parker
On Sep 22, 2012, at 4:46 PM, Boris Dobroslav wrote: > I'm perplexed by one line that appears in the file AVSPDocument.h from the > apple example code project AVSimplePlayer: > > staticvoid *AVSPPlayerItemStatusContext = &AVSPPlayerItemStatusContext; > > This definition appears outside of Object

Self contained command line tool

2012-10-12 Thread Charlie Dickman
I have created a command line tool that executes correctly in the debugger. How do I get the built binary to execute independently without starting the Terminal app. Charlie Dickman 3tothe...@comcast.net ___ Cocoa-dev mailing list (Cocoa-dev@lists.

Hierarchy Posters

2012-10-12 Thread Matthew Kozak
Many moons ago, at WWDC (2001?), I received a set of three posters: WebObjects Class Hierarchy Cocoa Java Class Hierarchy Cocoa Objective-C Class Hierarchy If anyone is interested, they're free for the taking - I'd prefer to find them a good home than to trash/recycle them. They are in great shap

Re: Embedding resources in Static Cocoa Library

2012-10-12 Thread Andres Kievsky
Anyone with a debugger and minimal knowledge of assembly can crack and patch your executable in 15 minutes. I used to do it myself when I was 16. Instead of wasting time on this, focus on making your application better. -- ank On 09/10/2012, at 12:15 PM, Alexander Bokovikov wrote: > > On Oc

Problem with CATransaction

2012-10-12 Thread Gabriel Zachmann
Dear all, I have a problem with CA with my screensaver when it runs under Mountain Lion. My screensaver displays images, a new one every minute. I have used Core Animation to achieve a blending effect when the image gets replaced by a new one. Everything else seems to work fine, but the blendin

Problem with CATransaction

2012-10-12 Thread Gabriel Zachmann
Dear all, I have a problem with CA with my screensaver when it runs under Mountain Lion. My screensaver displays images, a new one every minute. I have used Core Animation to achieve a blending effect when the image gets replaced by a new one. Everything else seems to work fine, but the blendin

NSTableView how to sort rows after modify datasource array

2012-10-12 Thread Евсеев Алексей
sorry for my english I have a form with NSTableView and two button "add" and "remove" "Add" button add's item into datasource array. And new row will show only after restart program. "Remove" button remove item from array. While select another rows deleted rows will empty but visible. how i

Re: Getting a dotted font from a regular font

2012-10-12 Thread Andres Kievsky
If by 'dotted font' you mean something like this: http://www.fontspace.com/honey-and-death/dotline Then I would render each font in a small, low resolution bitmap (say, 10x10) and then use that bitmap to find the centres around which to draw circles. So if you have a bit set at (5,5) in the low

AVFoundation: Creating an AVAsset from compressed data

2012-10-12 Thread Matthias Dörfelt
Hi, I would like to build a simple live video capture streaming application, so my idea was to use AVCaptureVideoDataOutput to get the uncompressed data of the capture session, and then to send that data over a socket connection. On the other side I would want to decompress the compressed frame

deviceID from ICDevice in Cocoa

2012-10-12 Thread Zazie Gill (GMail)
How can I retrieve the deviceID from the ICDevice just like it's output by NSLog. The name can easily be retrieved with addedDevice.name, but addedDevice.deviceID doesn't work. - (void)deviceBrowser:(ICDeviceBrowser*)browser didAddDevice:(ICDevice*)addedDevice moreComing:(BOOL)moreComing {

File browser widget

2012-10-12 Thread Qiang Y
Good morning everyone, I need a file browser control/widget for my project under osx. Does anyone know if cocoa provides one for developers to user in their own applications? Thank you! Qiang ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

custom slider for video trimming application

2012-10-12 Thread Muthulingam Ammaiappan
Hi Friends, i am developing the video trimming application in cocoa /mac os x 10.7.4 and xcode 4.3.3...(i am newbie to the cocoa and mac) my current requirement is "I *need to develop the custom slider which will allow the user to select the range and then trim the video clip with that range*

custom slider for video trimming application... how i can implement(help needed)

2012-10-12 Thread Muthulingam Ammaiappan
Hi Friends, i am developing the video trimming application in cocoa /mac os x 10.7.4 and xcode 4.3.3...(i am newbie to the cocoa and mac) my current requirement is "*need a custom slider which will allow the user to select the range and then trim the video clip with that range*"... is there

static void declaration in apple example code

2012-10-12 Thread Boris Dobroslav
Hi, I'm perplexed by one line that appears in the file AVSPDocument.h from the apple example code project AVSimplePlayer: staticvoid *AVSPPlayerItemStatusContext = &AVSPPlayerItemStatusContext; This definition appears outside of Objective-C @interface or @implementation, so it must be pure C