Re: NSInvocationOperations and background Threads

2009-10-18 Thread John Love
Ken .. Thanks for your prompt reply, I really appreciate it. I have revamped my code to have just one NSInvocationOperation whose selector contains the long for-loop. A snippet looks like: itsOps = [[NSInvocationOperation alloc] initWithTarget:self

Re: Why does my font come out looking fuzzy?

2009-10-18 Thread Ben Haller
On Oct 17, 2009, at 7:46 PM, Ben Haller wrote: Copied the TrueType font from Instruments into my project, added the necessary key to my Info.plist, set the font using [NSFont fontWithName:...], and hey presto, there the font is in my app. Only... it doesn't look as nice. It's less cris

Re: Why does my font come out looking fuzzy?

2009-10-18 Thread Graham Cox
On 19/10/2009, at 12:40 AM, Ben Haller wrote: The font may be a leftover from a previous implementation, perhaps. However, a troll through the images in Instruments does not reveal any digit images. Although it is an interesting exercise anyway; many of their button images and such are P

Re: Calculating a total from a collection of numeric attributes

2009-10-18 Thread I. Savant
On Oct 17, 2009, at 7:40 PM, Ian Piper wrote: I have a Core Data entity that has an attribute called charge (stored as a float). So I am storing a number of records each of which has a charge. I simply want to be able to show a running total of charges as I add or remove items. I was hoping

Curious about SSH

2009-10-18 Thread Brent Smith
Is there a certain class or framework that people are using to store Keychain Information? Apps like Coda, and Transmit, and Versions that store passwords, how do they add them to Apples Keychain access, for use with apps like SSH/SFTP and so on. ___

Re: Curious about SSH

2009-10-18 Thread I. Savant
On Oct 18, 2009, at 11:26 AM, Brent Smith wrote: Is there a certain class or framework that people are using to store Keychain Information? Yes. Apps like Coda, and Transmit, and Versions that store passwords, how do they add them to Apples Keychain access, for use with apps like SSH/

Re: Calculating a total from a collection of numeric attributes

2009-10-18 Thread Ian Piper
On 18 Oct 2009, at 15:45, I. Savant wrote: On Oct 17, 2009, at 7:40 PM, Ian Piper wrote: I have a Core Data entity that has an attribute called charge (stored as a float). So I am storing a number of records each of which has a charge. I simply want to be able to show a running total of

Re: Any way to see all AppleEvents being sent in system?

2009-10-18 Thread Matt Neuburg
On Fri, 16 Oct 2009 18:45:54 -0700, Rick Mann said: >It often starts with one, then spreads to others. There is speculation >online that that 65,535th event results in a long hang/timeout. I want >to get an idea of how many events are really being sent during normal >use (that is, not during heavi

Re: Any way to see all AppleEvents being sent in system?

2009-10-18 Thread Rick Mann
I repeat. I'm not interested in any specific app. I'm just seeing my machine lock up periodically. By being able to see how many events are flying around *the whole system*, I can attempt to correlate that with the lockups I'm seeing, and get a better handle on whether or not this is the pr

Re: Using core data binary and string attributes with NSTextView

2009-10-18 Thread Matt Neuburg
On Sat, 17 Oct 2009 16:14:29 -0700, Robert said: >Now, after a lot of googling, I'm working on a solution that involves >having a new transient attribute in my model of type string (let's >call it storyText) that will mirror the text held in the binary data >story attribute. Instead of my search

Re: Any way to see all AppleEvents being sent in system?

2009-10-18 Thread Matt Neuburg
On or about 10/18/09 11:10 AM, thus spake "Rick Mann" : > I repeat. I'm not interested in any specific app. I'm just seeing my > machine lock up periodically. Then what's this doing on the Cocoa-Dev list? m. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/ pantes anthropoi

Re: Manipluate Cocoa Touch keyboard mode

2009-10-18 Thread Tron Thomas
I found the setting in Interface Builder. This works in that the keyboard initially appears in numeric mode. However, when someone presses the return key, the keyboard switches to letter mode. How can someone prevent this behavior? Yandy Ramirez wrote: numbers and punctuation in IB textfie

Re: Why does my font come out looking fuzzy?

2009-10-18 Thread Greg Guerin
Ben Haller wrote: I'm using an NSTextField to do the text drawing. It certainly renders text antialiased. In any case, the renderings do look antialiased; the edges are not sharply on pixel boundaries (see the top of the 5, for example). It just isn't the same appearance as in Instruments

Re: Manipluate Cocoa Touch keyboard mode

2009-10-18 Thread Yandy Ramirez
well I'm assuming if the user hits return, then you want the keyboard to disappear, not stay on screen. Look up in the documentation UITextFieldDelegate protocol, and a method textFieldShouldReturn, this will hide the keyboard. Assuming that you want the keyboard to disappear from screen. Thi

Re: Curious about SSH --> actually about: Keychain

2009-10-18 Thread Stuart Malin
On Oct 18, 2009, at 3:01 PM, Brent Smith wrote: Is there a certain class or framework that people are using to store Keychain Information? A relevant subject line is always a good idea; your query was actually about Keychain, not ssh. On Oct 18, 2009, at 3:01 PM, I. Savant wrote: Apps li

postinstall script packagemaker

2009-10-18 Thread Russell Gray
how do I delete a key in a plist file, in a postinstall script? I have tried: Code: #!/bin/sh defaults delete $HOME/Library/Preferences/com.apple.Safari myKeyToDelete the script deletes the entire plist file though, not the key? I tried this: Code: #!/bin/sh /usr/bin/defaults delete myKeyToDe

Re: postinstall script packagemaker

2009-10-18 Thread Kyle Sluder
On Oct 18, 2009, at 1:33 PM, Russell Gray wrote: how do I delete a key in a plist file, in a postinstall script? This has nothing to do with Cocoa. Take it to the installer-dev list. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.appl

Re: NSInvocationOperations and background Threads

2009-10-18 Thread Ken Thomases
On Oct 18, 2009, at 7:26 AM, John Love wrote: Thanks for your prompt reply, I really appreciate it. You're welcome. I have revamped my code to have just one NSInvocationOperation whose selector contains the long for-loop. [...] the long for-loop is within -doAllOperations. OK, as far i

Disk burning virtual folder problem

2009-10-18 Thread David Cake
I'm having a problem with some disk burning code that has me baffled. It works fine on my main development machine, I take it to a second machine (even if I build and run it from within XCode on a second machine) and it mysteriously fails. I create a burn folder and make it virtual DRFolder *r

video DVD burn on Mac OS X?

2009-10-18 Thread David Cake
While I am on the subject of DVD burning, are there any methods of creating a video DVD playable in DVD players programmatically, other than directly calling another program such as dvdauthor? Regards David ___ Cocoa-dev mail

Re: video DVD burn on Mac OS X?

2009-10-18 Thread Paul M
Take a look at the source for DVDAuthor. paulm On 19/10/2009, at 11:58 AM, David Cake wrote: While I am on the subject of DVD burning, are there any methods of creating a video DVD playable in DVD players programmatically, other than directly calling another program such as dvdauthor?

unsleep the display programatically?

2009-10-18 Thread jon
can you unsleep the display programatically? i haven't found a method yet for doing it? Jon. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at coco

Within UITableViewCell: capturing UISegmentedControl event & Row number?

2009-10-18 Thread Frederick C . Lee
The Environment: (1) iPhone SDK 3.2.1 The Setup: (1) UITableViewCell is defined within its own XIB... Interface Builder (XIB): File's Owner: View Controller. (2) UISegmentController's Action Method is defined within the View Controller; along side with: UITa

Re: unsleep the display programatically?

2009-10-18 Thread Mark Ritchie
On 18-Oct-2009, at 5:11 PM, jon wrote: can you unsleep the display programatically? i haven't found a method yet for doing it? Hrm... In what situation would you want to do such a thing? And what if the user has set security to require a password after being in sleep? M. _

Re: unsleep the display programatically?

2009-10-18 Thread jon
no, not the machine sleep, just the display sleep...the situation would be a process that runs longer than the current display sleep time, which then pops up an alert, which no one can see, since the display is asleep... Jon. On Oct 18, 2009, at 7:12 PM, Mark Ritchie wrote: Hrm.

Re: unsleep the display programatically?

2009-10-18 Thread David LeBer
On 2009-10-18, at 9:15 PM, jon wrote: no, not the machine sleep, just the display sleep...the situation would be a process that runs longer than the current display sleep time, which then pops up an alert, which no one can see, since the display is asleep... Jon. On Oct 18, 200

Re: unsleep the display programatically?

2009-10-18 Thread jon
Hi David, that would not work, because the display does need to sleep, it would be working a long time, and at nightbut needs to let people know that it is done. i have an alarm go off, but people can know it has gone off much better from a distance if suddenly the room is

Re: unsleep the display programatically?

2009-10-18 Thread David LeBer
On 2009-10-18, at 9:30 PM, jon wrote: Hi David, that would not work, because the display does need to sleep, it would be working a long time, and at nightbut needs to let people know that it is done. i have an alarm go off, but people can know it has gone off much better f

Re: unsleep the display programatically?

2009-10-18 Thread jon
worth a try anyway, I'll try tomorrow. thanks, Jon. On Oct 18, 2009, at 7:36 PM, David LeBer wrote: UpdateSystemActivity(UsrActivity); ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator

Re: Curious about SSH --> actually about: Keychain

2009-10-18 Thread Jens Alfke
On Oct 18, 2009, at 12:50 PM, Stuart Malin wrote: Multiple keywords is good stuff: the first link served by a Google search of "keychain framework" scores a bullseye: Keychain Framework | Get Keychain Framework at SourceForge.net There's also MYCrypto (disclaimer: written by me) which is le

Re: Curious about SSH --> actually about: Keychain

2009-10-18 Thread Brent Smith
thanks for the help all. Theres no need to be passive aggressive, Im already done writing my own class towards it, I had done research in the past and came up with no information, interestingly enough this time it did. I even searched the documentation. Anyways, I figured out what I need

Re: video DVD burn on Mac OS X?

2009-10-18 Thread David Cake
At 12:17 PM +1300 19/10/09, Paul M wrote: Take a look at the source for DVDAuthor. If there aren't any better alternatives, I may end up just doing what Burn does, and calling dvdauthor via NSTask. On 19/10/2009, at 11:58 AM, David Cake wrote: While I am on the subject of DVD burning, ar

Re: Hiding tab view items

2009-10-18 Thread BareFeet
there a different roots to success Thanks for the input. a) roll your own Tabs instead of Segmented cell in combination with a tabless NSTabView Do you mean use a segmented control with a tabless NSTabView, where each segmented cell is linked to a tab view? I have set that up, but c

OSX have that is equivalent to WaitMessage() Win32 API

2009-10-18 Thread Mars999
I need a function in OSX that is equivalent to WaitMessage() from the Win32API... Thanks Dave ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-

Core data unable to save Date, Name etc.

2009-10-18 Thread Harish Yarlagadda
I have a Class Math which extends NSManagedObject and has some dynamic propertiesa. name (String) b. date (Date) I using xcdatamodel for modeling my tables. I am using String and Date respectively from xcdatamodel. I am creating a new match object using insertNewObjectForEntityForName.  The objec

Re: OSX have that is equivalent to WaitMessage() Win32 API

2009-10-18 Thread Dave DeLong
Since it wasn't explained "The WaitMessage function yields control to other threads when a thread has no other messages in its message queue. The WaitMessage function suspends the thread and does not return until a new message is placed in the thread's message queue." The closest thin

Re: OSX have that is equivalent to WaitMessage() Win32 API

2009-10-18 Thread Graham Cox
On 18/10/2009, at 6:48 PM, Mars999 wrote: I need a function in OSX that is equivalent to WaitMessage() from the Win32API... No you don't. What are you actually trying to do? --Graham ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Plea

Re: OSX have that is equivalent to WaitMessage() Win32 API

2009-10-18 Thread Sean McBride
On 10/18/09 2:48 AM, Mars999 said: >I need a function in OSX that is equivalent to WaitMessage() from the >Win32API... You posted exactly this on carbon-dev 19 hours ago! You need to be more patient. And you need to explain more than you have, as I already told you. --

Re: Disk burning virtual folder problem

2009-10-18 Thread Graham Cox
On 19/10/2009, at 9:58 AM, David Cake wrote: DRFolder *rootFolder = [DRFolder folderWithPath:[self burnDirPath]] ^^^ rootFolder [rootFolder makeVirtual]; and then I try to add some other files to the contents of this directory NSURL *source = @"/Volumes/AValidVolumeName" NSFileManager

Re: OSX have that is equivalent to WaitMessage() Win32 API

2009-10-18 Thread Scott Ribe
> I need a function in OSX that is equivalent to WaitMessage() from the > Win32API... You cannot port software from Windows to Mac OS X by simply transliterating function calls. -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice __

OSX have that is equivalent to WaitMessage() Win32 API

2009-10-18 Thread Mars999
void CEngine::Start() { m_lLastTick = SDL_GetTicks(); m_bQuit = false; // Main loop: loop forever. while ( !m_bQuit ) { // Handle mouse and keyboard input HandleInput(); if ( m_bMinimized ) { // Release some system resources if the app. is minimized

Getting a view's size?

2009-10-18 Thread patrick
Total newbie question here... I have a window with a custom view filling the entire window. I'm trying to programatically determine the size of my view, but the numbers I'm getting back don't make sense to me. As a test, I've set my window and view to both be 1024 x 768. But in my view, if I outpu

Re: Getting a view's size?

2009-10-18 Thread Kyle Sluder
On Sun, Oct 18, 2009 at 10:31 PM, patrick wrote: > Total newbie question here... You're going to need to post your code. Sounds like you're incorrectly printing the width and height of your view (a %d instead of a %f in your NSLog statement might cause this behavior). --Kyle Sluder

Re: OSX have that is equivalent to WaitMessage() Win32 API

2009-10-18 Thread M Pulis
On Oct 18, 2009, at 9:43 PM, Mars999 wrote: void CEngine::Start() { m_lLastTick = SDL_GetTicks(); m_bQuit = false; // Main loop: loop forever. while ( !m_bQuit ) { // Handle mouse and keyboard input HandleInput(); if ( m_bMinimized ) { // Release some syste

Re: Getting a view's size?

2009-10-18 Thread patrick
Thank you! That was exactly the problem. :) Patrick On Sun, Oct 18, 2009 at 10:44 PM, patrick wrote: > Thank you! That was exactly the problem. :) > > Patrick > > On Sun, Oct 18, 2009 at 10:39 PM, Kyle Sluder wrote: >> On Sun, Oct 18, 2009 at 10:31 PM, patrick wrote: >>> Total newbie question

Re: Programming Style: Method Definition with or without a semicolon.

2009-10-18 Thread Alexander Spohr
Am 18.10.2009 um 04:35 schrieb Ken Thomases: For controlling code completion, search for "XCCodeSenseFormattingOptions" on this page: http://developer.apple.com/mac/library/documentation/DeveloperTools/Reference/XcodeUserDefaultRef/100-Xcode_User_Defaults/UserDefaultRef.html Thank you Ken, t

Re: Programming Style: Method Definition with or without a semicolon.

2009-10-18 Thread Dave Keck
> Any suggestion how to jump from one method parameter prototype to the next > to replace them one after the other? Eclipse does that with tab. If I understand you correctly, control-/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do no

Re: Within UITableViewCell: capturing UISegmentedControl event & Row number?

2009-10-18 Thread Alexander Spohr
Frederick, just an idea - from UIView’s documentation: tag The receiver’s tag, an integer that you can use to identify view objects in your application. @property(nonatomic) NSInteger tag Set the tag of each segmented view to the row before you hand it out to the table view. atze

Re: Core data unable to save Date, Name etc.

2009-10-18 Thread Alexander Spohr
Am 18.10.2009 um 20:50 schrieb Harish Yarlagadda: I have a Class Math which extends NSManagedObject and has some dynamic propertiesa. name (String) b. date (Date) I using xcdatamodel for modeling my tables. I am using String and Date respectively from xcdatamodel. I am creating a new match o

Re: OSX have that is equivalent to WaitMessage() Win32 API

2009-10-18 Thread Jens Alfke
You're looking for CFRunLoop (or NSRunLoop if you want to use Objective-C), which is the way event loops and event handling work on Mac OS X. But there isn't a function like WaitMessage, because the loop is inside-out — instead of writing your own event loop, the system runs it, and calls

Re: Programming Style: Method Definition with or without a semicolon.

2009-10-18 Thread Alexander Spohr
Am 19.10.2009 um 08:05 schrieb Dave Keck: Any suggestion how to jump from one method parameter prototype to the next to replace them one after the other? Eclipse does that with tab. If I understand you correctly, control-/ Yep, that’s it! I didn’t see it in the prefs. Got it now. Thank y