Re: CrashReporter alternatives for third-party apps?

2009-03-05 Thread Torsten Curdt
Maybe you are looking for something like this? http://vafer.org/projects/feedbackreporter/ The screencast is a little outdated. But I hope to fix that up soon. Also have a look here: http://developer.apple.com/qa/qa2001/qa1288.html cheers -- Torsten On Thu, Mar 5, 2009 at 03:26, Rick Mann

How to search for mop3 files, retrieve those file and play these file into apps

2009-03-05 Thread haresh vavdiya
Hello, Hope that everyone is fine. I am developing one application in which user can retrieve music file from machine and use can play this music file also. So i have to search for .mp3 files in all folders and then display into table. Can anyone tell me

Re: How to search for mop3 files, retrieve those file and play these file into apps

2009-03-05 Thread Graham Cox
On 05/03/2009, at 8:41 PM, haresh vavdiya wrote: I am developing one application in which user can retrieve music file from machine and use can play this music file also. So i have to search for .mp3 files in all folders and then display into table. Can anyone tell me

Re: How to search for mop3 files, retrieve those file and play these file into apps

2009-03-05 Thread rajesh
Scanning system directory for files with NSFileManager traversing each node ? I think it is not an efficient ... not to mention so many nodes in an hierarchy you need to scan A simple google search will help you in this regard, for starters there are file handlers and spotlight guides

Odd crash-loading AppleScripts

2009-03-05 Thread Reza Farhad
Has Thanks for your suggestion but it did not make any difference. To make sure that there was nothing else in my code that was creating the issue I made a little app to reproduce the problem. This app Loads a simple Hello World script and displays it in a window. Again if I have Guard

Re: How to search for mop3 files, retrieve those file and play these file into apps

2009-03-05 Thread Luca Pazzerello
I would suggest you to use the unix command line tool `find`. Perform a command like thisfind . -name *.mp3 -print in an NSTask context. Every line of the output will be a file path. I suggest to authenticate the user - running as root will avoid permission troubles finding the files. Note

Re: Odd crash-loading AppleScripts

2009-03-05 Thread Matt Gough
Reza, I suspect this is not your fault. I suggest you file a radar bug. BTW - You never release NSAppleScript *script, so this code would leak. and your spelling is as bad as ever :) 'laodRunScript' Matt On 5 Mar 2009, at 11:25, Reza Farhad wrote: Has Thanks for your suggestion but it

Re: Can't get setDelegate to work on NSMenu attached toNSStatusItem (SOLVED)

2009-03-05 Thread Paul Sanders
I never noticed the wee warning triangle next to the call. I do miss C++ compiler errors! I personalyy have a zero-tolerance policy on warnings in my code. Then, when I do get one, I pay attention to it. Warnings in Objective-C would often be errors in a more strongly typed language.

Re: Odd crash-loading AppleScripts

2009-03-05 Thread matt . gough
In fact, even this simpler version will trip up GuardMalloc -( void ) laodRunScript { NSDictionary*errors = nil; NSString*fieldContent = @Could not Load Script, See Logs; NSAppleScript *script = [[ NSAppleScript alloc ] initWithSource:@return \Hello

Re: Odd crash-loading AppleScripts

2009-03-05 Thread Reza Farhad
Matt I thought this could be some issue beyond my control. I agree with the leak, which in the real project would be handled. About the spelling no comment Reza On 5 Mar 2009, at 12:00, Matt Gough wrote: Reza, I suspect this is not your fault. I suggest you file a radar bug. BTW - You

Re: How to search for mop3 files, retrieve those file and play these file into apps

2009-03-05 Thread Graham Cox
On 05/03/2009, at 11:13 PM, haresh vavdiya wrote: enumeratorAtPath is not helpful because we don't know exact path... we have to search in whole directoriesis there any another way to do that. Umm... well a path of / represents the entire volume... To be honest scanning the whole

Re: Odd crash-loading AppleScripts

2009-03-05 Thread Reza Farhad
Reported the bug to Apple. Reza On 5 Mar 2009, at 12:00, Matt Gough wrote: Reza, I suspect this is not your fault. I suggest you file a radar bug. BTW - You never release NSAppleScript *script, so this code would leak. and your spelling is as bad as ever :) 'laodRunScript' Matt On 5

Re: Checking for NULL (was Re: Can't get setDelegate to work...)

2009-03-05 Thread Steven Noyes
On Mar 4, 2009, at 7:54 PM, Mark D. Gerl wrote: Precisely.. code-in-email. I do handle all else cases, and wrap it all up inside exceptions. Kind of habit by now. What I was kind of fishing for in the nil/NULL checking - was - to recognize that it seems Cocoa programmers are trending

Re: Checking for NULL (was Re: Can't get setDelegate to work...)

2009-03-05 Thread Roland King
On Mar 5, 2009, at 9:32 PM, Steven Noyes wrote: On Mar 4, 2009, at 7:54 PM, Mark D. Gerl wrote: Precisely.. code-in-email. I do handle all else cases, and wrap it all up inside exceptions. Kind of habit by now. What I was kind of fishing for in the nil/NULL checking - was - to

Re: MVC - Model View Control

2009-03-05 Thread Erik Buck
As an author, I humbly recommend http://my.safaribooksonline.com/9780321591210.  Check out the table of contents. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: CrashReporter alternatives for third-party apps?

2009-03-05 Thread Sean McBride
On 3/4/09 6:26 PM, Rick Mann said: Can you guys suggest something I can use to submit crash reports to my own servers (and perhaps to suppress Apple's CrashReporter)? With http://smartcrashreports.com/ it's as easy as adding 2 items to your Info.plist, though the user has to have SCR installed.

Re: Doing NSStringDrawingTruncatesLastVisibleLine with NSLayoutManger

2009-03-05 Thread Eric Gorr
On Mar 4, 2009, at 4:57 PM, Eric Gorr wrote: I am drawing a string with a NSLayoutManager by doing: [layoutManager drawGlyphsForGlyphRange:glyphRange atPoint:NSMakePoint( [self bounds].origin.x,[self bounds].origin.y )]; What I would like is if the string I am drawing goes beyond the last

Any sample code to record in aiff format

2009-03-05 Thread Anshul jain
hi Is there any sample code to record in aiff format Regards, Anshul jain ___ 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

User In-Activity hook?

2009-03-05 Thread Rich Collyer
Are there any hooks for tracking user activity? I need to be able to determine if there has been any user activity (mouse, keyboard, disk access) for a period of time. +++ Rich Collyer - Senior Software Engineer +++ smime.p7s Description: S/MIME

Re: Any sample code to record in aiff format

2009-03-05 Thread I. Savant
On Thu, Mar 5, 2009 at 10:15 AM, Anshul jain anshul.j...@prithvisolutions.com wrote:        Is there any sample code to record in aiff format http://www.lmgtfy.com/?q=cocoa+record+aiff With thanks to Nick for the helpful link ... -- I.S. ___

Re: Any sample code to record in aiff format

2009-03-05 Thread Eric Gorr
On Mar 5, 2009, at 10:34 AM, I. Savant wrote: On Thu, Mar 5, 2009 at 10:15 AM, Anshul jain anshul.j...@prithvisolutions.com wrote: Is there any sample code to record in aiff format http://www.lmgtfy.com/?q=cocoa+record+aiff Rather then googling everything, I have found:

Re: User In-Activity hook?

2009-03-05 Thread Torsten Curdt
On Thu, Mar 5, 2009 at 16:35, Rich Collyer rcoll...@ironkey.com wrote: Are there any hooks for tracking user activity? I need to be able to determine if there has been any user activity (mouse, keyboard, disk access) for a period of time. http://vafer.org/blog/20081118145046 cheers --

Re: User In-Activity hook? And a request

2009-03-05 Thread m
For the archives, the blog Torsten linked to had this bit of code: double CGSSecondsSinceLastInputEvent(long evType); double idleTime = CGSSecondsSinceLastInputEvent(-1); Might I humbly request that when feasible, actual answers be posted to the list, and not merely links to answers? One way

Re: Any sample code to record in aiff format

2009-03-05 Thread Matt Neuburg
On Thu, 5 Mar 2009 20:45:13 +0530, Anshul jain anshul.j...@prithvisolutions.com said: hi Is there any sample code to record in aiff format Did you try a search on recording audio at the apple developer site? m. -- matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/ A fool

Re: User In-Activity hook? And a request

2009-03-05 Thread Shawn Erickson
On Thu, Mar 5, 2009 at 8:58 AM, m mlist0...@gmail.com wrote: For the archives, the blog Torsten linked to had this bit of code: double CGSSecondsSinceLastInputEvent(long evType); double idleTime = CGSSecondsSinceLastInputEvent(-1); You should note that those are private / undocumented API

Disabling key bindings

2009-03-05 Thread Shayne Wissler
I have an application in which the user's normal OSX key bindings are meaningless, and while they are in that application I would like to detect any keyboard event. Right now I am using KeyDown, KeyUp, and FlagsChanged, but these of course are subject to the user's key bindings. Is there either a

Re: Checking for NULL (was Re: Can't get setDelegate to work...)

2009-03-05 Thread Clark Cox
On Thu, Mar 5, 2009 at 5:32 AM, Steven Noyes stevenno...@mac.com wrote: On Mar 4, 2009, at 7:54 PM, Mark D. Gerl wrote: Precisely.. code-in-email.  I do handle all else cases, and wrap it all up inside exceptions.  Kind of habit by now. What I was kind of fishing for in the nil/NULL

Re: User In-Activity hook? And a request

2009-03-05 Thread Michael Ash
On Thu, Mar 5, 2009 at 11:58 AM, m mlist0...@gmail.com wrote: For the archives, the blog Torsten linked to had this bit of code: double CGSSecondsSinceLastInputEvent(long evType); double idleTime = CGSSecondsSinceLastInputEvent(-1); Might I humbly request that when feasible, actual answers

NSString leak or RedHerring again?

2009-03-05 Thread James Cicenia
Hello - I do this a lot but only this give me leaks: while (sqlite3_step(statement) == SQLITE_ROW) { AvailableItem *newItem = [[AvailableItem alloc]init]; [newItem setName: [NSString stringWithUTF8String:(char *)sqlite3_column_text(statement, 0)]];

Re: NSString leak or RedHerring again?

2009-03-05 Thread Clark Cox
What does -[AvailableItem dealloc] look like? On Thu, Mar 5, 2009 at 10:54 AM, James Cicenia ja...@jimijon.com wrote: Hello - I do this a lot but only this give me leaks:  while (sqlite3_step(statement) == SQLITE_ROW) {        AvailableItem *newItem = [[AvailableItem alloc]init];        

NSStatusItem when clicked shows custom view

2009-03-05 Thread Chris Purcell
I'm looking to do something similar to this app: http://transmissionapps.com/ (Logbook). I've seen that done in a handful of apps, a custom window/view invoked when the NSStatusItem is clicked. My two quesitons: 1) How is that window created. Is it a custom NSWindow or a regular

Re: User In-Activity hook? And a request

2009-03-05 Thread Rich Collyer
I appreciate the importance of NOT using undocumented APIs and the IOKit option listed below works great. Thank you, +++ Rich Collyer - Senior Software Engineer +++ On Mar 5, 2009, at 10:23 AM, Michael Ash wrote: On Thu, Mar 5, 2009 at 11:58 AM, m

Re: Disabling key bindings

2009-03-05 Thread Ken Thomases
On Mar 5, 2009, at 11:59 AM, Shayne Wissler wrote: I have an application in which the user's normal OSX key bindings are meaningless, and while they are in that application I would like to detect any keyboard event. Right now I am using KeyDown, KeyUp, and FlagsChanged, but these of course

Re: NSString leak or RedHerring again?

2009-03-05 Thread Bill Bumgarner
On Mar 5, 2009, at 10:54 AM, James Cicenia wrote: AvailableItem is a bare bones class with just synthesize and nothing else. Why is it leaking? You need to release the strings in AvaiableItem's -dealloc method. b.bum ___ Cocoa-dev mailing list

Re: NSString leak or RedHerring again?

2009-03-05 Thread James Cicenia
I had thought that @synthesize does that autmatically. I guess not. On Mar 5, 2009, at 1:18 PM, Bill Bumgarner wrote: On Mar 5, 2009, at 10:54 AM, James Cicenia wrote: AvailableItem is a bare bones class with just synthesize and nothing else. Why is it leaking? You need to release the

Re: User In-Activity hook? And a request

2009-03-05 Thread Rich Collyer
BTY, is there a similar dictionary item for mass storage accesses? i.e. how long since the last time a file system read or write took place. +++ Rich Collyer - Senior Software Engineer +++ On Mar 5, 2009, at 11:13 AM, Rich Collyer wrote: I

Re: NSString leak or RedHerring again?

2009-03-05 Thread Bill Bumgarner
On Mar 5, 2009, at 11:20 AM, James Cicenia wrote: I had thought that @synthesize does that autmatically. I guess not. It is desired, but it is actually exceedingly difficult to generalize a solution that is correct in all cases. There is a radar tracking this particular feature request --

Re: NSString leak or RedHerring again?

2009-03-05 Thread James Cicenia
OK That worked but now that I got you: Why is it complaining about the indicated array below: while (sqlite3_step(statement) == SQLITE_ROW) { //find subtype as key in the dict first if(![aDict objectForKey: [NSString stringWithUTF8String:(char

[Q] NSObject's poseAsClass - Replacement?

2009-03-05 Thread Eric Gorr
I have a need to use poseAsClass, but I see that it has been deprecated in 10.5 and won't be available for 64-bit applications. So, is there a replacement? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Search Kit Proximity Searching

2009-03-05 Thread Steve Scott
I am having trouble with proximity searching using Search Kit under OS X 10.5.6. I have two simple text documents in my index one just contains the phrase Sometimes I am amazed at how stupid Scotty can really be! and the other contains the phrase I am amazed at how stupid some people

Re: [Q] NSObject's poseAsClass - Replacement?

2009-03-05 Thread Eric Gorr
On Mar 5, 2009, at 2:33 PM, Eric Gorr wrote: I have a need to use poseAsClass, but I see that it has been deprecated in 10.5 and won't be available for 64-bit applications. So, is there a replacement? Well, with a bit of searching I came up with what might be an option:

Re: [Q] NSObject's poseAsClass - Replacement?

2009-03-05 Thread Benjamin Stiglitz
I have a need to use poseAsClass, but I see that it has been deprecated in 10.5 and won't be available for 64-bit applications. So, is there a replacement? WAYTTD: What are you trying to do? Maybe you don’t need to pose. -Ben ___ Cocoa-dev

Re: [Q] NSObject's poseAsClass - Replacement?

2009-03-05 Thread Eric Gorr
On Mar 5, 2009, at 2:47 PM, Benjamin Stiglitz wrote: I have a need to use poseAsClass, but I see that it has been deprecated in 10.5 and won't be available for 64-bit applications. So, is there a replacement? WAYTTD: What are you trying to do? Maybe you don’t need to pose. Well, sadly,

Re: Disabling key bindings

2009-03-05 Thread Shayne Wissler
On Thu, Mar 5, 2009 at 12:17 PM, Ken Thomases k...@codeweavers.com wrote: On Mar 5, 2009, at 11:59 AM, Shayne Wissler wrote: I have an application in which the user's normal OSX key bindings are meaningless, and while they are in that application I would like to detect any keyboard event.

Re: Disabling key bindings

2009-03-05 Thread Ken Thomases
On Mar 5, 2009, at 2:18 PM, Shayne Wissler wrote: On Thu, Mar 5, 2009 at 12:17 PM, Ken Thomases k...@codeweavers.com wrote: On Mar 5, 2009, at 11:59 AM, Shayne Wissler wrote: I have an application in which the user's normal OSX key bindings are meaningless, and while they are in that

Re: Question about the Foundation Framework

2009-03-05 Thread Steve Shepard
On Thu, Feb 19, 2009 at 7:36 AM, Michael Ash michael@gmail.com wrote: If you're looking for more information, note that NSTemporaryDirectory is essentially equivalent to /tmp on a normal UNIX system This is not quite true. On Leopard, the dirhelper utility deletes files from

Re: Disabling key bindings

2009-03-05 Thread Shayne Wissler
So why don't I get events for F1-F4, F7-12? I was assuming it was because they were bound, evidently there's a different level of key binding going on? I suspect you would if you used the fn key with them. For F1-F4, it works as you suspect. For F8-F12, even holding FN doesn't let them

Thread usage : Main thread interrupting secondary thread

2009-03-05 Thread Miles
I'm new to using threads and hitting an unexpected issue. *There is an object moving across the screen on a separate thread started like this:* [NSThread detachNewThreadSelector:@selector( startObjectsAnimation: ) toTarget:animationHelper withObject:nil]; * Then in animationHelper:*

Re: Question about the Foundation Framework

2009-03-05 Thread Steve Shepard
On Thu, Mar 5, 2009 at 1:06 PM, Bill Bumgarner b...@me.com wrote: Then touch the files every 24 hours or so? That would work. Of course you'd also have to register for sleep notifications in case your user closed the laptop lid and left it closed for more than three days, and you'd have to

NSPopUPButton and selectedTag binding seems to give me index instead

2009-03-05 Thread Stuart Malin
I have a NSPopUpButton that is driven by bindings. I establish (programmatically) a binding between the NSPopUpButtom instance's selectedTag property and an NSTreeController that contains objects that have a property that should correspond with the available tag values. This does not seem

mouseUp event for NSSlider

2009-03-05 Thread Norio
Hi, Would you give me any suggestions to get the mouseUp event for NSSlider? I've tried to make subclass of NSSlider and override mouseUp: and then put a breakpoint, but the debugger didn't stop at the breakpoint. Best regards, Norio ___

Re: Disabling key bindings

2009-03-05 Thread Ken Thomases
On Mar 5, 2009, at 3:09 PM, Shayne Wissler wrote: For F1-F4, it works as you suspect. For F8-F12, even holding FN doesn't let them pass through. Those keys are bound to Exposé, Dashboard, and Spaces by default. See the Keyboard Shortcuts tab or the separate preference panes for those

Re: NSPopUPButton and selectedTag binding seems to give me index instead

2009-03-05 Thread Ken Thomases
On Mar 5, 2009, at 3:35 PM, Stuart Malin wrote: First, what works: I drive the content and contentValues from an object that I construct which is an indexed accessor KVC (read-only) compliant with a backing store array of NSMenuItem items. I'm pretty sure that doesn't work like you expect

CoreData, SyncServices NSURL ...

2009-03-05 Thread Mic Pringle
Hi, I'm having a small problem with CoreData and SyncServices using the Bookmarks schema (com.apple.bookmarks.Bookmark) located in /System/Library/SyncServices/Schemas. One of the entities of that schema is url, which is of type url, which apparently maps to NSURL according to the Apple

NSTask - Notification and Threads

2009-03-05 Thread Seth Willits
It seems to me that the thread a task was launched on must continue to exist until the thread is terminated, in order for the task to send NSTaskDidTerminateNotification. I can either make my thread continue to exist (I'd prefer not) or I can make the launch happen on the main thread and

Re: NSTask - Notification and Threads

2009-03-05 Thread Ken Thomases
On Mar 5, 2009, at 4:22 PM, Seth Willits wrote: It seems to me that the thread a task was launched on must continue to exist until the thread is terminated, in order for the task to send NSTaskDidTerminateNotification. I can either make my thread continue to exist (I'd prefer not) or I can

Re: mouseUp event for NSSlider

2009-03-05 Thread Ron Fleckner
On 06/03/2009, at 8:43 AM, Norio wrote: Hi, Would you give me any suggestions to get the mouseUp event for NSSlider? I've tried to make subclass of NSSlider and override mouseUp: and then put a breakpoint, but the debugger didn't stop at the breakpoint. Best regards, Norio Hi Norio,

Re: Making NSTableView behave more like a spreadsheet with arrow keys

2009-03-05 Thread Dave Geering
Hi all, My solution to this problem can be found at: http://stackoverflow.com/questions/612805/arrow-keys-with-nstableview It's not very elegant but it gets the job done, and I'm welcome to suggestions for improvements. Cheers, Dave. On Thu, Mar 5, 2009 at 3:13 PM, Dave Geering wrote: Hi

launching per-user background agent 10.5 and higher

2009-03-05 Thread Rick Mann
We need to run a background agent that manages some data on a regular basis and displays a status item (menu bar item). We'd like to use the latest-and-greatest APIs for keeping it running while a user is logged in (including multiple users), but there seem to be issues with launchd. In

launching per-user background agent 10.5 and higher

2009-03-05 Thread Rick Mann
Sorry, added more info: We need to run a background agent that manages some data on a regular basis and displays a status item (menu bar item). We'd like to use the latest-and-greatest APIs for keeping it running while a user is logged in (including multiple users), but there seem to

Re: launching per-user background agent 10.5 and higher

2009-03-05 Thread David Duncan
On Mar 5, 2009, at 4:05 PM, Rick Mann wrote: Suggests launchd won't reliably run user agents. is this true in 10.5+? This is resolved on 10.5. See TN 2083 Deamons and Agents http://developer.apple.com/technotes/tn2005/tn2083.html#SECLAUNCHDAGENT -- David Duncan Apple DTS Animation and

Re: NSString leak or RedHerring again?

2009-03-05 Thread Keary Suska
On Mar 5, 2009, at 12:26 PM, James Cicenia wrote: OK That worked but now that I got you: Why is it complaining about the indicated array below: while (sqlite3_step(statement) == SQLITE_ROW) { //find subtype as key in the dict first if(![aDict objectForKey:

Re: launching per-user background agent 10.5 and higher

2009-03-05 Thread Rick Mann
Thanks! On Mar 5, 2009, at 17:00:26, David Duncan wrote: On Mar 5, 2009, at 4:05 PM, Rick Mann wrote: Suggests launchd won't reliably run user agents. is this true in 10.5+? This is resolved on 10.5. See TN 2083 Deamons and Agents

More user agent questions

2009-03-05 Thread Rick Mann
We can run on 10.5 or later (no need for pre-10.5). Our app needs to run as a background user agent, both to support the status item, and to periodically connect to our product that lives on the network and sync with it. There is an app or Sys Prefs Pane to provide the configuration UI.

Re: Path for writeToFile

2009-03-05 Thread Pierce Freeman
Maybe I'm off base here, but I haven't really found any more documentation on FSFindFolder() and a search of Google doesn't really revile anything either. Also, I read on one archived site, that the 10.5.6 upgrade breaks FSFindFolder(). On 3/3/09 8:55 AM, Nick Zitzmann n...@chronosnet.com

Re: Path for writeToFile

2009-03-05 Thread Nick Zitzmann
On Mar 5, 2009, at 8:24 PM, Pierce Freeman wrote: Maybe I'm off base here, but I haven't really found any more documentation on FSFindFolder() and a search of Google doesn't really revile anything either. Did you try Cocoabuilder? We've discussed FSFindFolder() on this list in the

Re: Path for writeToFile

2009-03-05 Thread Pierce Freeman
Did you try Cocoabuilder? We've discussed FSFindFolder() on this list in the past. http://www.cocoabuilder.com/search/archive/cocoa?words=FSFindFolder Looks like Cocoabuilder saved the day once again. I found some code on there and it works wonderfully. That's news to me; I haven't

How to create a modal dialog that blocks on start-up?

2009-03-05 Thread Graham Cox
My app needs to show an EULA on start-up (yes, I know, but what can you do?). Handling this is all fine, but I need the modal dialog that is shown to completely block the normal start-up of the app until it completes. Right now I show the dialog using [NSApp runModalForWindow:] and I

Re: How to create a modal dialog that blocks on start-up?

2009-03-05 Thread Kyle Sluder
Implement -applicationShouldOpenUntitledFile: in your app delegate to return a flag variable. Make sure that flag starts out as NO until your EULA is dismissed. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: How to create a modal dialog that blocks on start-up?

2009-03-05 Thread Graham Cox
On 06/03/2009, at 3:39 PM, Kyle Sluder wrote: Implement -applicationShouldOpenUntitledFile: in your app delegate to return a flag variable. Make sure that flag starts out as NO until your EULA is dismissed. --Kyle Sluder OK. Then after closing the dialog the app doesn't open an untitled

Re: How to create a modal dialog that blocks on start-up?

2009-03-05 Thread Graham Cox
On 06/03/2009, at 3:50 PM, Graham Cox wrote: Implement -applicationShouldOpenUntitledFile: in your app delegate to return a flag variable. Make sure that flag starts out as NO until your EULA is dismissed. --Kyle Sluder OK. Then after closing the dialog the app doesn't open an untitled

Re: Question about the Foundation Framework

2009-03-05 Thread Michael Ash
On Thu, Mar 5, 2009 at 3:45 PM, Steve Shepard steves...@gmail.com wrote: On Thu, Feb 19, 2009 at 7:36 AM, Michael Ash michael@gmail.com wrote: If you're looking for more information, note that NSTemporaryDirectory is essentially equivalent to /tmp on a normal UNIX system This is not

Re: mouseUp event for NSSlider

2009-03-05 Thread Michael Ash
On Thu, Mar 5, 2009 at 4:43 PM, Norio notty@gmail.com wrote: Hi, Would you give me any suggestions to get the mouseUp event for NSSlider? I've tried to make subclass of NSSlider and override mouseUp: and then put a breakpoint, but the debugger didn't stop at the breakpoint.

Re: [Q] NSObject's poseAsClass - Replacement?

2009-03-05 Thread Michael Ash
On Thu, Mar 5, 2009 at 3:00 PM, Eric Gorr mail...@ericgorr.net wrote: On Mar 5, 2009, at 2:47 PM, Benjamin Stiglitz wrote: I have a need to use poseAsClass, but I see that it has been deprecated in 10.5 and won't be available for 64-bit applications. So, is there a replacement? WAYTTD:

Re: Path for writeToFile

2009-03-05 Thread Michael Ash
On Thu, Mar 5, 2009 at 10:24 PM, Pierce Freeman piercefreema...@comcast.net wrote: Maybe I'm off base here, but I haven't really found any more documentation on FSFindFolder() and a search of Google doesn't really revile anything either.  Also, I read on one archived site, that the 10.5.6

Re: mouseUp event for NSSlider

2009-03-05 Thread John C. Randolph
On Mar 5, 2009, at 1:43 PM, Norio wrote: Hi, Would you give me any suggestions to get the mouseUp event for NSSlider? I've tried to make subclass of NSSlider and override mouseUp: and then put a breakpoint, but the debugger didn't stop at the breakpoint. What's tripping you up there

Re: How to create a modal dialog that blocks on start-up?

2009-03-05 Thread Kyle Sluder
On Fri, Mar 6, 2009 at 12:01 AM, Graham Cox graham@bigpond.com wrote: The app might have been launched with a file or files, or just by double-clicking. So if the EULA needs to be displayed this should just defer opening the required documents. By stopping the untitled or other files from

Re: [Q] NSObject's poseAsClass - Replacement?

2009-03-05 Thread John C. Randolph
On Mar 5, 2009, at 12:00 PM, Eric Gorr wrote: On Mar 5, 2009, at 2:47 PM, Benjamin Stiglitz wrote: I have a need to use poseAsClass, but I see that it has been deprecated in 10.5 and won't be available for 64-bit applications. So, is there a replacement? WAYTTD: What are you trying to

Re: How to search for mop3 files, retrieve those file and play these file into apps

2009-03-05 Thread Kyle Sluder
On Thu, Mar 5, 2009 at 4:41 AM, haresh vavdiya vavdiyahar...@gmail.com wrote:            So i have to search for .mp3 files in all folders and then display into table. Can anyone tell me that how can i search, retrieve .mp3 file and play this particular file into my apps. We have this amazing

Re: MVC - Model View Control

2009-03-05 Thread John C. Randolph
On Mar 5, 2009, at 5:55 AM, Erik Buck wrote: As an author, I humbly recommend http://my.safaribooksonline.com/9780321591210 . Check out the table of contents. I'll second Eric's recommendation. Also, there's a pretty good conceptual intro to MVC in the Cocoa docs. See

RE: How to create a modal dialog that blocks on start-up?

2009-03-05 Thread Jeff Laing
So what? Implement the appropriate methods in your NSApp delegate, or perhaps a custom subclass of NSDocumentController, and have them stow any arguments and keep reminding themselves using -performSelector:withObject:afterDelay: until conditions change such that the original message can be

NSView bottom part is cut off

2009-03-05 Thread Adam Gerson
I have a view that looks just fine in interface builder. When I display it in a window in my app it cuts off the bottom part of the content. Visual: http://screencast.com/t/YEXgqlAcP What could cause this? Thanks, Adam ___ Cocoa-dev mailing list

Re: NSView bottom part is cut off

2009-03-05 Thread John C. Randolph
On Mar 5, 2009, at 9:29 PM, Adam Gerson wrote: I have a view that looks just fine in interface builder. When I display it in a window in my app it cuts off the bottom part of the content. Visual: http://screencast.com/t/YEXgqlAcP What could cause this? Looks to me like you've probably got

Re: How to search for mop3 files, retrieve those file and play these file into apps

2009-03-05 Thread haresh vavdiya
I tried SpotLight examples. Its working but the problem is that it search mp3 file in /user/emp/Music directorynot for all directoriesactually i stored my songs oon Desktop/Songs/*.mp3but it doesn't search for that..what should i do for full search. On Fri, Mar 6, 2009 at 10:48

Re: How to create a modal dialog that blocks on start-up?

2009-03-05 Thread Graham Cox
On 06/03/2009, at 4:27 PM, Jeff Laing wrote: Why not just have those methods be the ones that display the EULA in a modal window, if required, then continue on as normal (if the user accepts, of course!) Ah, thank you - seems obvious, and indeed, works. :) --Graham

Re: How to create a modal dialog that blocks on start-up?

2009-03-05 Thread Andy Lee
On Mar 5, 2009, at 11:21 PM, Graham Cox wrote: My app needs to show an EULA on start-up (yes, I know, but what can you do?). Handling this is all fine, but I need the modal dialog that is shown to completely block the normal start-up of the app until it completes. Right now I show the

Re: CoreData, SyncServices NSURL ...

2009-03-05 Thread Kyle Sluder
Do you even need to write your own transformer? If you are targeting Leopard and later, you could just use a transformable attribute and leave it all up to the default NSKeyedArchiver transformer. --Kyle Sluder ___ Cocoa-dev mailing list

Re: More user agent questions

2009-03-05 Thread Kyle Sluder
On Thu, Mar 5, 2009 at 9:58 PM, Rick Mann rm...@latencyzero.com wrote: Our product (on the network) periodically updates its own software, and that update may include a new version of the Mac software. When the agent checks in and sees there's a new version, we'd like it to update ASAP,

Re: NSTask - Notification and Threads

2009-03-05 Thread Seth Willits
On Mar 5, 2009, at 2:45 PM, Ken Thomases wrote: Yeah. You can provide feedback for the documentation to ask for clarification. Done. :-) So, it's not even sufficient that the launch thread continues to exist, it must run its run loop. Good point. By the way, you don't necessarily

Re: Thread usage : Main thread interrupting secondary thread

2009-03-05 Thread Miles
Sorry to bump this but it's driving me nuts. Even knowing if this sounds expected or unexpected would be really helpful at this point, so I can figure out where to go from here to solve this problem. Thanks again, in advance. On Thu, Mar 5, 2009 at 12:43 PM, Miles vardpeng...@gmail.com wrote:

Re: Thread usage : Main thread interrupting secondary thread

2009-03-05 Thread Kyle Sluder
You bumped a 10-hour old message. You might want to have a bit of patience. Have you considered that the threads are vying for a lock? Why are you using threads anyway? Core Animation runs its own threads for you, and you're working with the runloop, which provides some measure of

Re: [Q] NSObject's poseAsClass - Replacement?

2009-03-05 Thread Quincey Morris
On Mar 5, 2009, at 21:17, John C. Randolph wrote: On Mar 5, 2009, at 12:00 PM, Eric Gorr wrote: On Mar 5, 2009, at 2:47 PM, Benjamin Stiglitz wrote: Although, this bug is not quite confirmed yet, but I suspect I know what the problem is. I am working on a Carbon - Cocoa conversion. In

Re: Thread usage : Main thread interrupting secondary thread

2009-03-05 Thread Miles
Thanks for the response, Kyle- I'm trying to wrap my head around threading and this is my first experiment with it. I've been doing lots of reading on it but it'll take awhile to sink in. I'm trying to use threads because I sometimes animate lots of objects every 0.02 seconds and it bogs things