Re: base64Binary
___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: programmitically creating nstextfield
On Wed, Apr 14, 2010 at 9:24 PM, mark trid...@ihug.co.nz wrote: window=[[NSWindow alloc] initWithContentRect:r styleMask:0 Use the NSBorderlessWindowMask symbolic constant instead of passing 0. backing:NSBackingStoreRetained defer:NO]; As the documentation says, do not use NSBackingStoreRetained, or in fact anything other than NSBackingStoreBuffered. This fixed it. Thanks --Kyle Sluder ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Colored checkboxes like in iCal
Is there a way to get colored checkboxes like in iCal without using custom drawing? I have looked through the documentation but can only find how to change the background and text color. / Andreas ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Colored checkboxes like in iCal
Hi Andreas, the only alternative to custom drawing I know is using the setImage: and setAlternateImage: methods of NSButton. These let you specify images for unchecked and checked state respectively. You could generate colored checkbox images with your own private method, something like - (NSImage *)checkboxImageWithColor:(NSColor *)aColor isChecked:(BOOL)checked and assign the images to your checkbox button instances. Implementing this image generating private method shouldn't be too hard. That's the path I would try first, but I never did this so please correct me if I'm wrong! Good luck! Sebastian Am 15.04.2010 um 09:43 schrieb Andreas Eriksson: Is there a way to get colored checkboxes like in iCal without using custom drawing? I have looked through the documentation but can only find how to change the background and text color. / Andreas ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/sebastianmorsch%40mac.com This email sent to sebastianmor...@mac.com ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Colored checkboxes like in iCal
On 15/04/2010, at 5:43 PM, Andreas Eriksson wrote: Is there a way to get colored checkboxes like in iCal without using custom drawing? I have looked through the documentation but can only find how to change the background and text color. Not built-in, but have a look at Matt Gemmell's implementation: http://mattgemmell.com/source (scroll down to iTableView) --Graham ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Static Libary which links against Foundation
On 11.04.2010, at 19:25, Jens Alfke wrote: On Apr 11, 2010, at 5:07 AM, Christian Ziegler wrote: it makes sense to convert this library to a static library. I did that and stumbled upon the problem that my test app (C-Shell-Toll) now has to link against Foundation. I would like to avoid that since the library should encapsulate everything which is Objective-C. Is that even possible? Not really. Any binary that contains calls into a framework has to link against that framework. If you include a static library in your app, it becomes part of the app binary, by definition. There shouldn’t be any problem with having the app link against Foundation. —Jens OK thanks!___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Setting a subclass of NSButtonCell in code
Hi All, I have subclassed NSButtonCell and overridden some methods. I know that we need to set the name of the subclass in the IB to get the effects of the subclass. Instead of setting it in the IB, is it possible to set the class in the code itself? if yes how can we do this. Thanks in advance Arun KA ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Setting a subclass of NSButtonCell in code
On 15/04/2010, at 7:14 PM, Arun wrote: Hi All, I have subclassed NSButtonCell and overridden some methods. I know that we need to set the name of the subclass in the IB to get the effects of the subclass. Instead of setting it in the IB, is it possible to set the class in the code itself? if yes how can we do this. It depends. If you want to use it with a control, use -setCell:, for a table column, -setDataCell: --Graham ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Setting a subclass of NSButtonCell in code
On 15/04/2010, at 7:14 PM, Arun wrote: Instead of setting it in the IB, is it possible to set the class in the code itself? if yes how can we do this. If you meant how to make objects of the subclass, just, y'know, create them: cell = [[MyCellClass alloc] init(...)]; Then set the control or other cell-hosting object using -setCell: or -setDataCell: as mentioned. There is no way to set the class in the code once an object has been made - its identity is established when it is allocated. --Graham ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Display AppleScript dictionary browser
My app currently allows the user to select and display an application AppleScript dictionary using the following undocumented call: [OSADictionary performSelector:@selector(chooseDictionary)] An app dictionary can be selected but the browser functionality is not fully functional. Searching for instance is inoperative and the GUI has display issues. Does any one know of a better way to automate AS dictionary selection? I am aware of the existence of ASD ictionary (which also seems to call the dictionary selection panel) but the sources don't seem to be available. AppleScript editor doesn't seem to expose the command in its own dictionary. Will i have to resort to GUI scripting? Regards Jonathan Mitchell Developer http://www.mugginsoft.com ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Text file
Hi, What's the correct way to open a text file? I'm using: NSError *error = nil; NSStringEncoding encoding; [myMutableString setString:[NSString stringWithContentsOfFile:filePath usedEncoding:encoding error:error]]; but on some files (say, Western Mac OS Roman) it crashes. 0x91dc507e +0334 call 0x91e68a50 CFLog 0x91dc5083 +0339 mov%esi,(%esp) 0x91dc5086 +0342 call 0x91ebf566 dyld_stub_OSSpinLockUnlock 0x91dc508b +0347 lea-0x80(%ebp),%esi 0x91dc508e +0350 mov%esi,(%esp) 0x91dc5091 +0353 call 0x91ebfb36 dyld_stub_objc_exception_try_enter 0x91dc5096 +0358 mov%esi,(%esp) 0x91dc5099 +0361 call 0x91ebf61a dyld_stub__setjmp 0x91dc509e +0366 test %eax,%eax 0x91dc50a0 +0368 jne0x91dc535a CFRunLoopRunSpecific+1066 0x91dc50a6 +0374 mov-0x1c(%ebp),%eax 0x91dc50a9 +0377 testb $0x1,0x2c(%eax) 0x91dc50ad +0381 jne0x91dc50b9 CFRunLoopRunSpecific+393 0x91dc50af +0383 mov-0x1c(%ebp),%eax 0x91dc50b2 +0386 mov0x24(%eax),%eax 0x91dc50b5 +0389 test %eax,%eax 0x91dc50b7 +0391 je 0x91dc50c9 CFRunLoopRunSpecific+409 0x91dc50b9 +0393 mov-0x1c(%ebp),%edx 0x91dc50bc +0396 mov0x8(%ebp),%eax 0x91dc50bf +0399 mov$0x1,%ecx 0x91dc50c4 +0404 call 0x91e08e40 __CFRunLoopDoObservers Any ideas? ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Help with crash in -[NSKeyValueNestedProperty matchesWithoutOperatorComponentsKeyPath:]
I need a bit of help. I am trying to track down a crash with KVO. It appears the app is crashing when trying to notify observers of a change. Is this crash a badly formated KVO path? 0 com.apple.Foundation0x96f555c0 -[NSKeyValueNestedProperty matchesWithoutOperatorComponentsKeyPath:] + 0 1 com.apple.Foundation0x96ee584f -[NSObject(NSKeyValueObservingPrivate) _notifyObserversForKeyPath:change:] + 735 2 com.apple.AppKit0x9032903e -[NSController _notifyObserversForKeyPath:change:] + 248 3 com.apple.AppKit0x90546d54 -[NSController observeValueForKeyPath:ofObject:change:context:] + 949 4 com.apple.Foundation0x96f552de NSKVONotify + 62 5 com.apple.Foundation0x97009b5c -[NSObject(NSKeyValueObservingPrivate) _didChangeValuesForKeys:] + 1068 6 com.apple.Foundation0x96f552de NSKVONotify + 62 7 com.apple.Foundation0x96f552de NSKVONotify + 62 8 com.apple.Foundation0x96ed15d2 -[NSObject(NSKeyValueObserverNotification) didChangeValueForKey:] + 546 9 com.apple.CoreFoundation0x96059265 CFDictionarySetValue + 581 10 com.apple.Foundation0x96ed013e -[NSCFDictionary setObject:forKey:] + 126 11 com.apple.CoreFoundation0x960fff12 -[NSMutableDictionary addEntriesFromDictionary:] + 226 Unfortunately i have very little data on what was actually going on before the crash. Scott Andrew ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Xcode 3.23 broke my code signing
On Apr 14, 2010, at 9:25 PM, Steve Mykytyn wrote: Project that built fine for weeks fails to pass validation, won't run when installed. Ran Xcode uninstall, reinstalled from scratch, same deal. Other than randomly trying stuff, does anyone have a known working procedure for fixing this??? Hard to think of a less productive way to waste time. The Xcode-users list would be more appropriate but since your subject seems to indicate version 3.2.3, you need to use the Apple Developer Forums available at: http://developer.apple.com/iphone (link to them on the right after you log in). Unrelated to the pre-release version, I did notice a temporary glitch a couple days ago that seemed to be related to the itunesconnect site having some temporary issues. A few hours later it was fine. 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Xcode 3.23 broke my code signing [FIXED]
For anyone else who runs into this: Reversion to 3.2.2 fixed the code signing issue. Black magic apparently. Nothing else worked. Apologies to anyone who thinks this should have been posted to a different list. On Apr 15, 2010, at 9:06 AM, Dave Reed wrote: On Apr 14, 2010, at 9:25 PM, Steve Mykytyn wrote: Project that built fine for weeks fails to pass validation, won't run when installed. Ran Xcode uninstall, reinstalled from scratch, same deal. Other than randomly trying stuff, does anyone have a known working procedure for fixing this??? Hard to think of a less productive way to waste time. The Xcode-users list would be more appropriate but since your subject seems to indicate version 3.2.3, you need to use the Apple Developer Forums available at: http://developer.apple.com/iphone (link to them on the right after you log in). Unrelated to the pre-release version, I did notice a temporary glitch a couple days ago that seemed to be related to the itunesconnect site having some temporary issues. A few hours later it was fine. 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Text file
On Apr 15, 2010, at 8:50 AM, Henrietta Read wrote: NSError *error = nil; NSStringEncoding encoding; [myMutableString setString:[NSString stringWithContentsOfFile:filePath usedEncoding:encoding error:error]]; The call to -stringWithContentsOfFile: looks correct, but you're failing to check for errors. If it fails, it will return nil, and passing nil to setString: is illegal and will throw an exception. This leaves the question of why -stringWithContentsOfFile: would fail. I'm not sure what heuristics that call uses, but you'd think it would be able to handle MacRoman, obsolete though it is. but on some files (say, Western Mac OS Roman) it crashes. The stack backtrace is a lot more useful than the disassmbly at the PC. If you're still having trouble, post the backtrace of the crash. Actually, as far as I can tell, this isn't a crash but rather a breakpoint on throwing an Objective-C exception. Which fits with what I said above. Did you set Stop On Objective-C Exceptions in the Run menu? —Jens___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Text file
On Apr 15, 2010, at 8:50 AM, Henrietta Read wrote: What's the correct way to open a text file? I'm using: NSError *error = nil; NSStringEncoding encoding; [myMutableString setString:[NSString stringWithContentsOfFile:filePath usedEncoding:encoding error:error]]; but on some files (say, Western Mac OS Roman) it crashes. assembly deleted First, I'd suggest you post the backtrace of the crash, not the assembly. Trying to debug a crash by looking at the assembly at the crash site is typically a method of near-last resort. Given zero context, the above lines of code look fine. Context needed to deduce this farther would be things like how filePath is initialized, how myMutableString was created, and the actual backtrace of the crash (and any other diagnostic messages, including whether or not you took a pass after build and analyze and fixed any problems it identified). b.bum ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Text file
Hi, 0x91dc507e +0334 call 0x91e68a50 CFLog 0x91dc5083 +0339 mov%esi,(%esp) 0x91dc5086 +0342 call 0x91ebf566 dyld_stub_OSSpinLockUnlock 0x91dc508b +0347 lea-0x80(%ebp),%esi 0x91dc508e +0350 mov%esi,(%esp) 0x91dc5091 +0353 call 0x91ebfb36 dyld_stub_objc_exception_try_enter 0x91dc5096 +0358 mov%esi,(%esp) 0x91dc5099 +0361 call 0x91ebf61a dyld_stub__setjmp 0x91dc509e +0366 test %eax,%eax If you mean that your program crashed on this very instruction, it should not happen. This is just a test to figure out if the EAX register is or is not null. Crash usually happen when you access protected memory or try to execute an unknown instruction... Vincent ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Setting front window when launched from another application
Hi, I am facing some issues with setting an application as front process when it is launched from another application. Basically, I have a parent application A. When user performs certain action, the parent application launches another application B. It does so by doing fork(). In child process, it launches the application B by calling execv(). In parent process, it runs an event loop in which it waits for events received from B. It is basically done to avoid user interaction with application A. Only when the user is done with application B, it can interact with A. Now, what happens is that on launching B from A, B does not come to focus. Even on explicitly setting B as front process, the issue does not get solved. One more issue I am facing is that when some modal dialog is up in A and then I launch B, it goes behind the modal dialog. Could you suggest some possible solution for this. Thanks, Gaurav Srivastava. ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: iPhone: A memory leak I can't explain
On Apr 14, 2010, at 10:41 PM, Tino Rachui wrote: in my app I'm accessing the photo library (in my opinion exactly as in sample programs I have seen from Apple). When leak-testing the app on the iPhone using Instrument the following leak is being reported (see stack trace) and I don't know the root cause. Does anybody has seen this before perhaps and knows the answer? Stack trace excerpt (*): Alas, probably not without the full stack. * How to get a textual representation of an Instrument stack trace? I can take a screenshot but I'm not sure if it is allowed to post images on this list. You can copy from the Extended Detail pane where the stack trace is shown. -- David Duncan Apple DTS Animation and Printing ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: iPhone: A memory leak I can't explain
David If you have any influence, it would be REALLY nice to allow Instruments to copy the leak contents section as well as being able to view the data in alternate formats. If it can be expedited, my bug report for this request is rdar://7776006 On 04/15/2010 10:42 AM, David Duncan david.dun...@apple.com wrote: On Apr 14, 2010, at 10:41 PM, Tino Rachui wrote: in my app I'm accessing the photo library (in my opinion exactly as in sample programs I have seen from Apple). When leak-testing the app on the iPhone using Instrument the following leak is being reported (see stack trace) and I don't know the root cause. Does anybody has seen this before perhaps and knows the answer? Stack trace excerpt (*): Alas, probably not without the full stack. * How to get a textual representation of an Instrument stack trace? I can take a screenshot but I'm not sure if it is allowed to post images on this list. You can copy from the Extended Detail pane where the stack trace is shown. -- David Duncan Apple DTS Animation and Printing ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Setting front window when launched from another application
On Apr 15, 2010, at 10:32 AM, Gaurav Srivastava wrote: When user performs certain action, the parent application launches another application B. It does so by doing fork(). Whoa — don’t do this. GUI apps should be launched by calling LaunchServices (or NSWorkspace, which is a wrapper around it.) One of the effects of failure to do this is that the frontmost app doesn’t relinquish its frontmost status, so the new app can’t claim it and become frontmost. There are other issues too. —Jens___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Setting a subclass of NSButtonCell in code
On Apr 15, 2010, at 2:14 AM, Arun wrote: Hi All, I have subclassed NSButtonCell and overridden some methods. I know that we need to set the name of the subclass in the IB to get the effects of the subclass. Instead of setting it in the IB, is it possible to set the class in the code itself? if yes how can we do this. Not really. Before IB allowed setting the cell's class, you'd have to have a matching subclass of NSButton and do something like this (pseudocode, from memory, because we've deleted all the code that did this): NSButtonCell *oldCell = [self cell]; MyButtonCell newCell = [[MyButtonCell alloc] init]; [newCell setFoo:[oldCell foo]]; [newCell setBar:[oldCell bar]]; . [self setCell:newCell]; You can see why we like using the new IB better. ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: NSNumberFormatter not working for me ?
On Apr 14, 2010, at 6:38 PM, Bill Hernandez wrote: On Apr 14, 2010, at 5:25 PM, Greg Guerin wrote: Your code formats strings (more specifically, characters in strings). It does not format numbers, as such. This is the work-around that I did because I could not make do with NSNumberFormatter. By number I mean a binary numeric value (floating-point or integer), or possibly NSNumber or NSDecimalNumber. I've been programming the mac since 1987 pretty much full-time. so I promise you, I am not confused at all about what a number is, and isn't... All your number parameters are actually of the NSString* type, not of a numeric type. The fact that the string contains digits is incidental. In a sense, converting a numeric value to NSString* is already a formatting operation, or at least a conversion operation. I think you missed the earlier messages. You are probably looking at the converter that I wrote as a work-around, which is basically a numeric string formatter. Your code would work just as well if you passed it an alphabetic string, or one containing punctuation marks. strippedNumber = @SueMeTomorrow format = @Social Security : ###-##-### result = @Social Security : Sue-Me-Tom I'm not saying the digit-string isn't relevant to what you're doing, only that what you seem to think of as a number is, in fact, a string that happens to contain a series of digit characters. I think that was a point an earlier reply was trying to make: NSNumberFormatter is for numeric values (NSNumber, in particular), not string values that happen to contain digits. I think people are confusing two issues, one being the abstract phone numbers aren't numbers and NSNumberFormatter is only for quantities, and the other is the reason you don't get what you want out of NSNumberFormatter, in trying to explain. Let me try to explain the latter as directly as possible. In this kind of example of the result you want: format = @(###) ###- result = @(123) 456-7890 You're trying to format a number object with NSNumberFormatter and get the formatter to put junk in the middle of the number [digit sequence]. NSNumberFormatter does not support formats putting junk in the middle of the number, except for a limited set involving the thousands separator and the decimal point. You're already doing the right thing for what you want to do by writing your own algorithm. You could mold that into the form of an NSFormatter subclass then, if that is useful to you, or just keep it off to the side as a helper function/method. Chris Kane Cocoa Frameworks, Apple ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: iPhone: A memory leak I can't explain
2010/4/15 David Duncan david.dun...@apple.com On Apr 14, 2010, at 10:41 PM, Tino Rachui wrote: in my app I'm accessing the photo library (in my opinion exactly as in sample programs I have seen from Apple). When leak-testing the app on the iPhone using Instrument the following leak is being reported (see stack trace) and I don't know the root cause. Does anybody has seen this before perhaps and knows the answer? Stack trace excerpt (*): Alas, probably not without the full stack. * How to get a textual representation of an Instrument stack trace? I can take a screenshot but I'm not sure if it is allowed to post images on this list. You can copy from the Extended Detail pane where the stack trace is shown. Well, yes but only one line at a time if I'm not wrong(?) which makes copying the whole stack a rather cumbersome task. But anyhow here we go: Self % Self Bytes Total % # Leaks Bytes Parent % Source Path Library Symbol Name 100 1 36.00 KB iPuz start 100 1 36.00 KB iPuz main 100 1 36.00 KB UIKit UIApplicationMain 100 1 36.00 KB UIKit -[UIApplication _run] 100 1 36.00 KB GraphicsServices GSEventRunModal 100 1 36.00 KB CoreFoundation CFRunLoopRunInMode 100 1 36.00 KB CoreFoundation CFRunLoopRunSpecific 100 1 36.00 KB CoreFoundation __CFRunLoopDoObservers 100 1 36.00 KB QuartzCore CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) 100 1 36.00 KB QuartzCore CA::Transaction::commit() 100 1 36.00 KB QuartzCore CA::Context::commit_transaction(CA::Transaction*) 100 1 36.00 KB QuartzCore CALayerLayoutIfNeeded 100 1 36.00 KB QuartzCore -[CALayer layoutSublayers] 100 1 36.00 KB UIKit -[UIView(CALayerDelegate) _layoutSublayersOfLayer:] 100 1 36.00 KB UIKit -[UILayoutContainerView layoutSubviews] 100 1 36.00 KB UIKit -[UINavigationController viewWillLayoutSubviews] 100 1 36.00 KB UIKit -[UINavigationController _startDeferredTransitionIfNeeded] 100 1 36.00 KB UIKit -[UINavigationController _startTransition:fromViewController:toViewController:] 100 1 36.00 KB UIKit -[UINavigationController _layoutViewController:] 100 1 36.00 KB UIKit -[UINavigationController _computeAndApplyScrollContentInsetDeltaForViewController:] 100 1 36.00 KB 0x3198de8c 100 1 36.00 KB UIKit -[UIViewController view] 100 1 36.00 KB 0x319a5a88 100 1 36.00 KB 0x3198e260 100 1 36.00 KB 0x3198e348 100 1 36.00 KB 0x319802e4 100 1 36.00 KB MusicLibrary -[MLPhotoLibrary albums] 100 1 36.00 KB MusicLibrary -[MLPhotoLibrary _loadImageLibrary] 100 1 36.00 KB MusicLibrary ReadITImageDB 100 1 36.00 KB MusicLibrary MemNewPtrClear 100 1 36.00 KB libSystem.B.dylib calloc Thanks in advance, Tino ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: iPhone: A memory leak I can't explain
On Apr 15, 2010, at 11:50 AM, Tino Rachui wrote: Well, yes but only one line at a time if I'm not wrong(?) which makes copying the whole stack a rather cumbersome task. Shift-click to extend the range between two points, command-click to select specific lines. But anyhow here we go: Self %Self Bytes Total % # Leaks Bytes Parent %Source Path Library Symbol Name 100 1 36.00 KB 0x3198de8c 100 1 36.00 KB 0x319a5a88 100 1 36.00 KB 0x3198e260 100 1 36.00 KB 0x3198e348 100 1 36.00 KB 0x319802e4 Do you happen to know what these frames are from? -- David Duncan Apple DTS Animation and Printing ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: iPhone: A memory leak I can't explain
2010/4/15 David Duncan david.dun...@apple.com On Apr 15, 2010, at 11:50 AM, Tino Rachui wrote: Well, yes but only one line at a time if I'm not wrong(?) which makes copying the whole stack a rather cumbersome task. Shift-click to extend the range between two points, command-click to select specific lines. Sorry for my ignorance but I can't get this to work. But anyhow here we go: Self %Self Bytes Total % # Leaks Bytes Parent % Source Path Library Symbol Name 100 1 36.00 KB 0x3198de8c 100 1 36.00 KB 0x319a5a88 100 1 36.00 KB 0x3198e260 100 1 36.00 KB 0x3198e348 100 1 36.00 KB 0x319802e4 Do you happen to know what these frames are from? Unfortunately not. -Tino ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: iPhone: A memory leak I can't explain
On Apr 15, 2010, at 12:32 PM, Tino Rachui wrote: 2010/4/15 David Duncan david.dun...@apple.com On Apr 15, 2010, at 11:50 AM, Tino Rachui wrote: Well, yes but only one line at a time if I'm not wrong(?) which makes copying the whole stack a rather cumbersome task. Shift-click to extend the range between two points, command-click to select specific lines. Sorry for my ignorance but I can't get this to work. What version of the tools are you using? I'm using the 3.2 SDK on Mac OS X 10.6. -- David Duncan Apple DTS Animation and Printing ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: iPhone: A memory leak I can't explain
2010/4/15 David Duncan david.dun...@apple.com On Apr 15, 2010, at 12:32 PM, Tino Rachui wrote: 2010/4/15 David Duncan david.dun...@apple.com On Apr 15, 2010, at 11:50 AM, Tino Rachui wrote: Well, yes but only one line at a time if I'm not wrong(?) which makes copying the whole stack a rather cumbersome task. Shift-click to extend the range between two points, command-click to select specific lines. Sorry for my ignorance but I can't get this to work. What version of the tools are you using? I'm using the 3.2 SDK on Mac OS X 10.6. Instruments 2.1 (1208) on Mac OS X 10.6.3. -Tino -- David Duncan Apple DTS Animation and Printing ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: NSNumberFormatter not working for me ?
On Apr 15, 2010, at 12:14 PM, Murat Konar wrote: On Apr 14, 2010, at 8:21 PM, Bill Hernandez wrote: The point is that NSNumberFormatter appears to me missing some flexibility in dealing with other than its own set of formatting converters, whatever the programmers thought they would need at the time they wrote it. Well, yes, but I think we have an expectation mis-match problem. The programmers had in mind a much smaller problem than the one you wish they did. Perhpas NSNumberFormatter could have been better named (NSQuantityFormatter?), but I don't think NSNumberFormatter was ever concieved of as being a one-stop solution for all numeric(ish) formatting. There is no way to make a class perfectly general and suitable for all ways of formatting arbitrary inputs. So you specialize based on what the input represents. For example, there is another subclass of NSFormatter called NSDateFormatter which is specialized to convert date objects to more friendly presentation strings. Obviously, knowing that an input represents a date makes parsing it quite a bit simpler. I wrote my own MIDI message formatter which takes MIDI messages, which are represented as a sequence numbers, and presents them as either binary or hexadecimal bytes. Again, the knowledge that the input is a MIDI message makes converting it a lot easier. Murat, Funny, how you and I have come to some similar ideas... During the night I was thinking that with the limitations placed on NSNumberFormatter, compared to other num2string formatters I have used over time, it should have probably been called NSCurrencyDisplayFormatter, or something more limited than what NSNumberFormatter implies. Floating point vars know nothing about dollar signs, commas, etc. They are stored as a float internally, but are displayed in an NSTextField , or provided to a string, with either no string formatting as 43.75, or with some display formatting such as $43.75. The point is that NSNumberFormatter appears to me missing some flexibility in dealing with other than its own set of formatting converters, whatever the programmers thought they would need at the time they wrote it. I looked at a the header file for the class and it is gigantic, it is an amazing piece of work. So even when you take numeric values from a couple of NSTextFields and perform some calculation, the display of those fields is purely string representation of the underlying values, but the minute you begin doing calculations, you are back working with the floats, ints, etc. Some systems handle this automatically for you, some require you to deal with that conversion, keeping track of what's what, etc. It's OK that the NSNumberFormatter doesn't have that capability, or at least that I havent found it, work-arounds have always been a specialty for me, so that doesn't bother me in the least, I was just trying to explore my way around Cocoa. The NSDateFormatter has worked very well for me, and showed no such weakness. As I mentioned before when displaying the {string, text} representation of the underlying {item, object} which could be {floats, doubles, ints, etc} the format is applied, and the result is used for display purposes, whether it be to the screen, printer, etc., and obviously the formatting does not change in any way the underlying object. Assuming there's a method to trigger the conversion, its job is to apply the format for conversion from object to display representation, and if you pass the method an NSNumber, and an NSNumberFormatter, then regardless of the source of that NSNumber, or its intended use, the result should be in the format that you provide. The formatter should not care, nor does it know anything about what the number is going to be used for, or where it came from. It does NOT know, whether you are going to use that number to {add, subtract, etc} or whatever. It's only function in life is to take a properly structured number in the form of an NSNumber Object, whether that NSNumber came from a phoneNumber string, a calculation, etc. It just doesn't matter, its source is irrelevant, and its target is also irrelevant. NSString *aNumberString = @1234567890; NSString *format = @(###) ###-; NSNumberFormatter *numberFormatter = [[[NSNumberFormatter alloc] init] autorelease]; [numberFormatter setFormat:format]; // specify just positive values format NSInteger theInt = [aNumberString intValue]; NSNumber *theNum = [NSNumber numberWithInt:theInt]; NSString *theResultString = (NSString *)[numberFormatter stringFromNumber:theNum]; The above should work, and the only way this scenario to fail is if there are additional assumptions/limitations, as to what is allowable within the format string, and with the type of variable you are dealing with, as shown below. Using (numberWithInt:theInt), the results show that the class tries to protect you from your own bufoonery. It senses that you
How to find all clipping siblings for a view?
Hi, All, For some reason I need to do a job which NSWindow usually does, when it redraws itself (AFAIU) - I need to find all its views, which have z- order higher than my view, then get their bounding rectangles, unite them, subtract from the window content view bounding rectangle and sect the result with my view bounding rectangle. This is because my view uses QuickDraw to redraw itself, but those functions draw on screen directly (AFAIU) and don't take into account other views, located above current view. Could anybody show the right way to go? Thanks in advance. ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: NSNumberFormatter not working for me ?
On Apr 15, 2010, at 1:38 PM, Chris Kane wrote: I think people are confusing two issues, one being the abstract phone numbers aren't numbers and NSNumberFormatter is only for quantities, and the other is the reason you don't get what you want out of NSNumberFormatter, in trying to explain. Let me try to explain the latter as directly as possible. In this kind of example of the result you want: format = @(###) ###- result = @(123) 456-7890 You're trying to format a number object with NSNumberFormatter and get the formatter to put junk in the middle of the number [digit sequence]. NSNumberFormatter does not support formats putting junk in the middle of the number, except for a limited set involving the thousands separator and the decimal point. You're already doing the right thing for what you want to do by writing your own algorithm. You could mold that into the form of an NSFormatter subclass then, if that is useful to you, or just keep it off to the side as a helper function/method. Chris Kane Cocoa Frameworks, Apple Chris, Thanks for stepping in... I had thought about some of this every time I woke up during the night, and began composing a message this morning that I just posted, in reference to my findings. I posted the message, checked the emails, and found your response, which agreed with my observations. In the end the string2num formatter NSNumberFormatter is more of a subset of a true number formatter, it really should be called a currency formatter, perhaps NSCurrencyFormatter, or NSCurrencyDisplayFormatter. Not that I care, now that I understand what its target audience, and its functional scope is. I was trying to use it within a broader scope than what it was designed for, and that is OK, I can certainly do workarounds. I just wanted to understand and use what was available instead of reinventing whatever... It took me a while to figure this out, because I am used to number2string formatters that handle currency, as well as custom formats of all types. Since I am learning the Cocoa Framework, I prefer to use what is available, but I also love and thrive on work-arounds... Thanks for clarifying and confirming my understanding... Bill Hernandez Plano, Texas ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
How can we Pause And Play the Animations on UIView
Hi How can we Pause And Play the Animations on UIView. Thanks in advance for your suggestions. ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Measuring aliased text for drawing
Hello, I need to measure and draw some text in a non-antialiased NSGraphicsContext. Drawing is no problem: just setShouldAntialias:NO in the context, and I'm good. Measuring, however, is proving more difficult. I've been using the simple -[NSString sizeWithAttributes:] method, which works great for antialiased text, but doesn't seem to provide me a way to measure my non-antialiased text, and can't take a graphics context as a parameter. On a whim, I've tried using non-antialiased screen fonts in the font attribute via screenFontWithRenderingMode:NSFontIntegerAdvancementsRenderingMode. That doesn't seem to change the measurement. Is there a Cocoa-level solution? It seems like CTLineGetImageBounds gives me what I want, so I could go that route, but I'd rather not go through the trouble of pushing all of my drawing down to the CT layer. Or is the CT layer compatible with cocoa-level Fonts/String Attributes in some way that I've not seen yet? Thanks for any insights. -Jonah smime.p7s Description: S/MIME cryptographic signature ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
program termination after releasing self defined NSXMLParser class
Hi all, I am writing on an app for the iPhone/iPod which parses a xml Document to display the data in table views. I want to ask something fundamental. I created my own class of NSXMLParser: - XMLParser.h #import Foundation/Foundation.h @interface XMLParser : NSXMLParser { } @end - XMLParser.m #import XMLParser.h @implementation XMLParser -(void)dealloc { [super dealloc]; } @end - With the purpose to test these simple class I just did the following in the controller class of one view: -(BOOL)textFieldShouldBeginEditing:(UITextField *)textField { XMLParser *parser = [[XMLParser alloc] initWithContentsOfURL:[NSURL URLWithString:@http://localhost/test/out.xml;]]; [parser setDelegate:parser]; [parser parse]; [parser release]; return NO; } - Everything works fine until call the release method to the parser. In the simulator the app is terminating without any message in the log. I guess I do a fundamental mistake. Any ideas? Gruß Dominic Gruß Dominic ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: program termination after releasing self defined NSXMLParser class
On Apr 15, 2010, at 3:43 PM, Dominic Dauer wrote: Everything works fine until call the release method to the parser. In the simulator the app is terminating without any message in the log. I guess I do a fundamental mistake. Run the app with the debugger and it should tell you where it's crashing. That may help pin it down. I don't see anything obviously wrong, although subclassing NSXMLParser and setting it to be its own delegate seems weird — the purpose of a delegate mechanism is so you don't have to subclass; you can instead implement the delegate API in your own unrelated class and set an instance as the delegate. —Jens___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: How can we Pause And Play the Animations on UIView
On Apr 14, 2010, at 10:35 PM, Kalyanraju M wrote: How can we Pause And Play the Animations on UIView. www.gerv.net/hacking/how-to-ask-good-questions/ —Jens___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Does XCode 3.2 Documentation Browser Stink?
Am I missing something or does the new Documentation viewer for XCode 3.2 suck? I just upgraded my dev machine to Snow Leopard and installed XCode 3.2 and went to look up some Obj-C classes and everything is wacked. Gone is the filtered search results TableView above my the documentation pages - and its nice sortable columns where I can quickly adjust results. In its place seems to be a crappy HTML/Javascript list view with no sort capabilities at all. In addition is there a way to turn off all of the stupid Full Text and Title results... I don't want those - they just slow things down and add visual clutter when trying to find API info - which is what I am after most of the time. Why has the Doc Browser regressed here where before I could make those choices? Another gripe - I have to now click a pull down to see what Doc Sets I am searching in whereas before I could just look at the selected buttons. Okay, so now that I flew off the handle in this rant, will someone please tell me I am wrong and there is a classic doc browser option or third party browser? ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Does XCode 3.2 Documentation Browser Stink?
On Thu, Apr 15, 2010 at 4:48 PM, Chris Tracewell ch...@thinkcl.com wrote: Okay, so now that I flew off the handle in this rant, will someone please tell me I am wrong and there is a classic doc browser option or third party browser? There is not. Regardless of its validity, this rant really belongs on xcode-users and in a bug report. --Kyle Sluder ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Does XCode 3.2 Documentation Browser Stink?
On Thu, Apr 15, 2010 at 5:28 PM, Kyle Sluder kyle.slu...@gmail.com wrote: On Thu, Apr 15, 2010 at 4:48 PM, Chris Tracewell ch...@thinkcl.com wrote: Okay, so now that I flew off the handle in this rant, will someone please tell me I am wrong and there is a classic doc browser option or third party browser? There is not. Erp, I meant there is no classic option. Alternative browsers do exist; AppKiDo is a very popular one. --Kyle Sluder ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Help with crash in -[NSKeyValueNestedProperty matchesWithoutOperatorComponentsKeyPath:]
On Apr 15, 2010, at 11:03 AM, scottand...@roadrunner.com scottand...@roadrunner.com wrote: Unfortunately i have very little data on what was actually going on before the crash. The crash report itself starts with some important information that you've omitted: the actual nature of the crash. What kind of signal or exception was received? Also, if you can have the reporter check their console log for anything that might have been written just at the moment of the crash, that could be invaluable. Regards, Ken ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Setting front window when launched from another application
So, is there any way to prevent the user interaction with the parent application and still keep receiving events from child application. On Thu, Apr 15, 2010 at 11:44 PM, Jens Alfke j...@mooseyard.com wrote: On Apr 15, 2010, at 10:32 AM, Gaurav Srivastava wrote: When user performs certain action, the parent application launches another application B. It does so by doing fork(). Whoa — don’t do this. GUI apps should be launched by calling LaunchServices (or NSWorkspace, which is a wrapper around it.) One of the effects of failure to do this is that the frontmost app doesn’t relinquish its frontmost status, so the new app can’t claim it and become frontmost. There are other issues too. —Jens -- Gaurav Srivastava Btech CSE MNNIT,Allahabad ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: program termination after releasing self defined NSXMLParser class
On 16.04.2010, at 01:45, Jens Alfke wrote: Run the app with the debugger and it should tell you where it's crashing. That may help pin it down. The debugger shows this: Program received signal: “EXC_BAD_ACCESS” Dominic ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Setting front window when launched from another application
On Apr 15, 2010, at 11:11 PM, Gaurav Srivastava wrote: So, is there any way to prevent the user interaction with the parent application and still keep receiving events from child application. Um, perhaps you could describe what you are trying to accomplish, as the normal way to prevent a user from interacting with an application is to put up a application-modal dialog box with a suitable message and/or a 'cancel' button. Eli ___ 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-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com