Re: Crashes while reordering columns in a NSTableView

2009-07-22 Thread Rob Keniger
On 22/07/2009, at 2:42 AM, Nick Zitzmann wrote: One thought: Are you using the -CGImage method of NSBitmapImageRep anywhere? If so, then you absolutely must not deallocate the NSBitmapImageRep while the CGImageRef is live, because the CGImageRef acquired via -CGImage is still using the

Re: The iPhone SDK OpenGL ES Application template

2009-07-22 Thread Wilson Chen
Thank you David for the tip! On Wed, Jul 22, 2009 at 5:11 AM, David Duncan david.dun...@apple.comwrote: On Jul 21, 2009, at 10:18 AM, Wilson Chen wrote: My question is: since an EAGLView is a subclass of UIView, is there a particular reason for the template to not follow the common pattern

Recording phone calls

2009-07-22 Thread Mahaboob
Is it possible to develop an application for recording phone calls? I'm using iPhone OS 2.2. Thanks in advance Mahaboob ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: Recording phone calls

2009-07-22 Thread Roland King
No. Not using published APIs in 2.2 (or 3.0). No access to the phone piece whatsoever. Mahaboob wrote: Is it possible to develop an application for recording phone calls? I'm using iPhone OS 2.2. Thanks in advance Mahaboob ___ Cocoa-dev mailing

Re: Recording phone calls

2009-07-22 Thread John C. Randolph
On Jul 22, 2009, at 2:19 AM, Mahaboob wrote: Is it possible to develop an application for recording phone calls? Possible? Maybe. Supported? No. -jcr ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Apple's Reducer Example

2009-07-22 Thread Andreas Zeitler
Hi, I am currently writing something VERY similiar to Apple's Reducer App: http://developer.apple.com/SampleCode/Reducer/index.html I'm a Noob and have re-written the code to fit my needs (which is just the rescaling part) to my needs but there is one Binding i can't get working. I can't

Changing default button cell in Cocoa Application

2009-07-22 Thread Kerms Technical Services
I have a window winUser with two buttons bntEnter and bntBuild. I am trying to switch the default button between the two as the program progresses. Initially both buttons are disabled. After the user enters some text fields I set bntEnter as the default with [winUser

Re: Recording phone calls

2009-07-22 Thread Jonathan del Strother
Well, technically I suppose the user could start a phone call, then hit the home button launch your recording app, then you could start recording whatever the microphone picks up... On Wed, Jul 22, 2009 at 10:26 AM, Roland Kingr...@rols.org wrote: No. Not using published APIs in 2.2 (or 3.0).

Re: Found Re: List FAQ and Cocoa learning resources

2009-07-22 Thread Alastair Houghton
On 21 Jul 2009, at 19:22, Erik Buck wrote: Sorry. Right after I posted, I found http://www.cocoadev.com/index.pl?FAQs I should add, since the top link on that page is mine, that I haven't updated that document for ages, and while it covers some basic things and links to some other useful

Re: Recording phone calls

2009-07-22 Thread Mahaboob
I did like this, but the voice is not getting recorded while I'm making a call. If I developed this application, will apple store approve this? On 7/22/09 3:06 PM, Jonathan del Strother maill...@steelskies.com wrote: Well, technically I suppose the user could start a phone call, then hit the

Re: Recording phone calls

2009-07-22 Thread Roland King
well that's impossible to say and not a cocoa question. If you use only public APIs and satisfy the other store conditions then I don't see why not. But you really cannot say and I've certainly not read the app conditions document recently. If it worked just grabbing from the microphone, the

Re: Recording phone calls

2009-07-22 Thread Kyle Sluder
On Jul 22, 2009, at 3:12 AM, Mahaboob mahab...@newtok.com wrote: If I developed this application, will apple store approve this? None of us is in any position to speculate about the actions of the App Store approval team on a hypothetical application. But it is important to note that

dragging to move objects around?

2009-07-22 Thread Darren Minifie
Hi I am trying to implement the ability to move subviews around a view by dragging them. The simple code I have thus far: - (void)draggedImage:(NSImage *)anImage endedAt:(NSPoint)aPoint operation:(NSDragOperation)operation{ [self setFrameOrigin:[self convertPointFromBase:aPoint]]; } Here

Re: Changing default button cell in Cocoa Application

2009-07-22 Thread Dave Fernandes
You can make this change without using setDefaultButtonCell at all. Just make sure you change btnEnter's key equivalent to be something other than return before changing btnBuild's to be return. [btnEnter setKeyEquivalent:@]; [btnBuild setKeyEquivalent:@\r]; On Jul 21,

When saving the managed object context

2009-07-22 Thread Squ Aire
How can I do some custom stuff before my NSManagedObjectContext saves? (I want to cleanup some garbage that might get created while my app is running). In my case this would be faster to do than override my NSManagedObject didTurnIntoFault. So, to do this, is it safe for me to subclass

Re: dragging to move objects around?

2009-07-22 Thread Greg Titus
Hi Darren, The point passed into -draggedImage:endedAt:operation: is in screen coordinates, which is different from the window base coordinates that - convertPointFromBase: expects. You want to convert from screen to base, and then from base to your superview's coordinate system (because

Re: When saving the managed object context

2009-07-22 Thread mmalc Crawford
On Jul 22, 2009, at 7:22 AM, Squ Aire wrote: How can I do some custom stuff before my NSManagedObjectContext saves? Register for NSManagedObjectContextWillSaveNotification. mmalc ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: Recording phone calls

2009-07-22 Thread Alex Kac
Recorder on the app store does it. -- CEO WebIS Sent from my phone On Jul 22, 2009, at 4:26 AM, Roland King r...@rols.org wrote: No. Not using published APIs in 2.2 (or 3.0). No access to the phone piece whatsoever. Mahaboob wrote: Is it possible to develop an application for recording

RE: When saving the managed object context

2009-07-22 Thread Squ Aire
I see no such thing in my docs. Only DidSave. Not WillSave. From: mmalc_li...@me.com Date: Wed, 22 Jul 2009 07:54:30 -0700 To: cocoa-dev@lists.apple.com Subject: Re: When saving the managed object context On Jul 22, 2009, at 7:22 AM, Squ Aire

Re: When saving the managed object context

2009-07-22 Thread mmalc Crawford
On Jul 22, 2009, at 8:05 AM, Squ Aire wrote: On Jul 22, 2009, at 7:22 AM, Squ Aire wrote: How can I do some custom stuff before my NSManagedObjectContext saves? Register for NSManagedObjectContextWillSaveNotification. I see no such thing in my docs. Only DidSave. Not WillSave. Sorry, I've

RE: dragging to move objects around?

2009-07-22 Thread Erik Buck
I didn't see any actual question.  I think you also need to post more code if you want anything better than wild guesses about what you are doing. Start here: http://developer.apple.com/documentation/Cocoa/Conceptual/DragandDrop/DragandDrop.html I assume you are using -

Re: Recording phone calls

2009-07-22 Thread Roland King
not really, not if we're talking about the same app. The one I've seen pushes calls through an external service and the recording is done there ... Can Recorder record phone calls? Yes. Recorder 10 can record outgoing calls through an external service. Because we have to work directly with

NSSlider with multiple values?

2009-07-22 Thread ALEXander
Hello all, I have an NSSlider which can relate to multiple different values. What would be a good way of showing the user that if the touches the slider he will change all these values to the value on the slider? Like the dash in an NSCheckBox, but just for NSSlider. Best, ALEXander.

UUID method Garbage Collection safe?

2009-07-22 Thread Squ Aire
I've been using this method to make UUID strings: + (NSString *)stringWithUUID{ CFUUIDRef uuidObj = CFUUIDCreate(nil); NSString *uuidString = (NSString*)CFUUIDCreateString(nil,uuidObj); CFRelease(uuidObj); return [uuidString autorelease];} How do you all like it? Is it ok? It's based on

Re: UUID method Garbage Collection safe?

2009-07-22 Thread Julien Jalon
Correct code is: + (NSString *)stringWithUUID{ CFUUIDRef uuidObj = CFUUIDCreate(nil); NSString *uuidString = (NSString*)NSMakeCollectable(CFUUIDCreateString(nil,uuidObj)); CFRelease(uuidObj); return [uuidString autorelease];} Or you will leak in GC. -- Julien On Wed, Jul 22, 2009 at 6:45

Re: AppleScript Record and NSDictionary

2009-07-22 Thread has
Steve Cronin wrote: From my Cooca app I want to call an AppleScript with several parameters one of which is an AppleScript record. I've got everything about calling and return values working smoothly. What I can't seem to get is how to create that parameter record. ObjC-appscript's

List classes in Bundle?

2009-07-22 Thread Robert Mullen
Is there a way to actually list all the classes in a given bundle? I know I can look one up if I know the name but I would like to actually be able to present a list. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: List classes in Bundle?

2009-07-22 Thread glenn andreas
On Jul 22, 2009, at 12:00 PM, Robert Mullen wrote: Is there a way to actually list all the classes in a given bundle? I know I can look one up if I know the name but I would like to actually be able to present a list. If the bundle is loaded, you should be able to iterate through all the

Re: UUID method Garbage Collection safe?

2009-07-22 Thread Keith Duncan
Or just use [[NSProcessInfo processInfo] globallyUniqueString] Keith On 22 Jul 2009, at 17:53, Julien Jalon wrote: Correct code is: + (NSString *)stringWithUUID{ CFUUIDRef uuidObj = CFUUIDCreate(nil); NSString *uuidString = (NSString*)NSMakeCollectable(CFUUIDCreateString(nil,uuidObj));

Re: List classes in Bundle?

2009-07-22 Thread Keith Duncan
I've not used it but I recalled a runtime function objc_copyClassNamesForImage() which you might be able to use to localise your search to a specific bundle (instead of enumerating all the Objective-C classes). Keith On 22 Jul 2009, at 18:05, glenn andreas wrote: On Jul 22, 2009, at

Re: List classes in Bundle?

2009-07-22 Thread Jean-Daniel Dupas
You can listen NSBundleDidLoadNotification notifications. it contains @NSLoadedClasses key in the userinfo dictionary. This probably won't work for frameworks loaded at launch time, but may be helpful in some cases. Le 22 juil. 09 à 19:29, Keith Duncan a écrit : I've not used it but I

Re: GC'd app that keeps growing and growing

2009-07-22 Thread Bill Bumgarner
On Jul 22, 2009, at 10:30 AM, Tarek Khouzam wrote: So here is my issue. I have an app that when it should have hit the limit of memory it needs to use, it keeps growing over time. But after 12 hours or so its memory grows about 10x. So what I would like to know is where I should go from

Re: Cocoa-dev Digest, Vol 6, Issue 1051

2009-07-22 Thread Karl Moskowski
On Jul 22, 2009, at 10:30 AM, Tarek Khouzam wrote: So here is my issue. I have an app that when it should have hit the limit of memory it needs to use, it keeps growing over time. But after 12 hours or so its memory grows about 10x. So what I would like to know is where I should go from here?

[window frame] reporting wrong y coordinate

2009-07-22 Thread Eric Gorr
There is a sample application at: http://www.ericgorr.net/cocoadev/WindowPosition.zip and inside of the zip file is a screen shot (screen shot.tiff) of what I see when I run the application. It shows the lower y coordinate of the window at -24 and the window is entirely on screen. I

Re: [window frame] reporting wrong y coordinate

2009-07-22 Thread Shawn Erickson
On Wed, Jul 22, 2009 at 12:28 PM, Eric Gorrmail...@ericgorr.net wrote: There is a sample application at: http://www.ericgorr.net/cocoadev/WindowPosition.zip and inside of the zip file is a screen shot (screen shot.tiff) of what I see when I run the application. It shows the lower y

RE: UUID method Garbage Collection safe?

2009-07-22 Thread Squ Aire
Thank you very much. Date: Wed, 22 Jul 2009 18:53:57 +0200 Subject: Re: UUID method Garbage Collection safe? From: jja...@gmail.com To: squ...@live.com CC: cocoa-dev@lists.apple.com Correct code is: + (NSString *)stringWithUUID{ CFUUIDRef uuidObj =

RE: UUID method Garbage Collection safe?

2009-07-22 Thread Squ Aire
Yes I was aware of this method. However, according to the docs it only guarantees uniqueness for a given process, and doesn't guarantee it will be globally unique, if you know what I mean. Thanks for the suggestion though. Subject: Re: UUID method

Re: [window frame] reporting wrong y coordinate

2009-07-22 Thread Eric Gorr
On Jul 22, 2009, at 3:36 PM, Shawn Erickson wrote: On Wed, Jul 22, 2009 at 12:28 PM, Eric Gorrmail...@ericgorr.net wrote: There is a sample application at: http://www.ericgorr.net/cocoadev/WindowPosition.zip and inside of the zip file is a screen shot (screen shot.tiff) of what I see

Re: UUID method Garbage Collection safe?

2009-07-22 Thread Bill Bumgarner
On Jul 22, 2009, at 12:42 PM, Squ Aire wrote: Yes I was aware of this method. However, according to the docs it only guarantees uniqueness for a given process, and doesn't guarantee it will be globally unique, if you know what I mean. Thanks for the suggestion though. As the method name

Re: UUID method Garbage Collection safe?

2009-07-22 Thread Jim Correia
On Jul 22, 2009, at 3:42 PM, Squ Aire wrote: Yes I was aware of this method. However, according to the docs it only guarantees uniqueness for a given process, and doesn't guarantee it will be globally unique, if you know what I mean. Thanks for the suggestion though. The documentation

Re: Recording phone calls

2009-07-22 Thread Alfonso Urdaneta
Mahaboob wrote: If I developed this application, will apple store approve this? Given the laws governing the recording of telephone conversations, probably not. -- alfonso e. urdaneta red82.com - are you ready? ___ Cocoa-dev mailing list

How to make the Contextual Menu on the tableview's empty rows unable?

2009-07-22 Thread Bright
Hi everyone: In the Controller class, I used the code as follows to finished the contextual menu on the table view. And I succeeded. videoContextualMenu= [[[NSMenualloc] initWithTitle:@Contextual Menu] autorelease];

Re: How to make the Contextual Menu on the tableview's empty rows unable?

2009-07-22 Thread Graham Cox
On 23/07/2009, at 1:03 PM, Bright wrote: Hi everyone: In the Controller class, I used the code as follows to finished the contextual menu on the table view. And I succeeded. [] Now I hope the contextual menu disappears in the empty rows. And it is only valid in the rows which

Core Animation rendering problem

2009-07-22 Thread Randall Meadows
Probably not the best subject line, but best I could come up with... I an animating a ball across the screen, using this code: CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@position]; animation.duration = duration; animation.delegate = self; animation.timingFunction =

NSTableView - populating from C procedure

2009-07-22 Thread Alexander Bokovikov
Hi, All, This is my first attempt to deal with Cocoa container class, so I have some unclear points. I've found one of many tutorials here: http://www.cocoadev.com/index.pl?NSTableViewDataSource where it is said, among other, that NSTableView items may be filled out like this: -

Re: NSTableView - populating from C procedure

2009-07-22 Thread Graham Cox
On 23/07/2009, at 3:41 PM, Alexander Bokovikov wrote: My specifics is that the data (strings) are delivered by an external procedure, located out of ObjC stuff, and returning C-style strings. My table has only one column. My question is, as usual, about memory manager: May I write