Re: Bindings and empty text field nil assigments

2008-08-27 Thread Markus Spoettl
On Aug 27, 2008, at 9:21 PM, Quincey Morris wrote: I suspect you can get the effect you want by using a formatter on the text field. Someone was complaining on this list a week or two ago that 10.4+ style formatters never set properties to nil values, but this sounds like the behavior you wa

Re: Bindings and empty text field nil assigments

2008-08-27 Thread Markus Spoettl
On Aug 27, 2008, at 9:32 PM, mmalc crawford wrote: I don't want to go and store NSNumbers instead of scalar values, which I imagine would have the advantage of accepting nil values inherently. Why not? There may be an advantage if you are doing a lot of mathematical calculations, but the

CFBundleIconFile: heiß or hot?

2008-08-27 Thread Gerriet M. Denkmann
// this shows the application default icon if CFBundleIconFile = "heiß" // works ok for CFBundleIconFile = "hot" - (IBAction)iconForFileN: sender; { NSBundle *mainBundle = [ NSBundle mainBundle ]; NSString *bundlePath = [ mainBundle bundlePath ]; NSImage *image = [ [ N

Re: Core Data - use of simple accessors vs. KVC

2008-08-27 Thread Negm-Awad Amin
Am Do,28.08.2008 um 06:43 schrieb Caleb Strockbine: On Aug 27, 2008, at 2:43 PM, Negm-Awad Amin and mmalc crawford argued: You can subclass NSManagedObject and add properties using @property and @dynamic, which means, that the accessors will be generated dynamically at run-time. (Without @dy

Re: NSFileManager Help

2008-08-27 Thread Andrew Farmer
On 27 Aug 08, at 17:43, J. Todd Slack wrote: NSString *applicationSupportDirectory = @"~/Library/Application Support/Ring-Maker/tmp/"; /* temp scratch space */ If you need "temp scratch space", use the NSTemporaryDirectory() function - the user's home directory may be on a device with slow

Re: Core Data - use of simple accessors vs. KVC

2008-08-27 Thread Negm-Awad Amin
Am Mi,27.08.2008 um 19:57 schrieb mmalc crawford: On Aug 27, 2008, at 10:36 AM, Negm-Awad Amin wrote: Am Mi,27.08.2008 um 19:19 schrieb mmalc crawford: On Aug 27, 2008, at 9:48 AM, Negm-Awad Amin wrote: Am Mi,27.08.2008 um 18:22 schrieb Oleg Krupnov: Suppose I have a Core Data model obj

Re: Bindings and empty text field nil assigments

2008-08-27 Thread mmalc crawford
On Aug 27, 2008, at 9:32 PM, mmalc crawford wrote: Not directly. You could implement a value transformer to turn a nil value into a number 0, or (best of all) you could use a formatter to prevent a user from entering a nil in the first place... For a discussion of issues as they relate to

Re: Get current amount of available RAM

2008-08-27 Thread Alex Kac
I would normally agree. However this is a *specific* case where it would be quite nice to do this. In this *specific* case, there is no 64-bit option for me nor is worrying about the VM an option either. The amount of memory is pretty small anyway both ways (allocation and available). Le

Re: Get current amount of available RAM

2008-08-27 Thread Jason Coco
On Aug 28, 2008, at 00:31 , Alex Kac wrote: I need to check for free RAM before performing a specific operation. I've Googled and checked in the docs and I suspect its my terminology that's just out of whack. So what is the best way to find out how much available RAM is available in a Co

Re: Layer-Backed Views, Mouse, Presentation Tree Bug?

2008-08-27 Thread Scott Anguish
I believe this is expected behavior. if you can check troy's talk that accompanied the demo (2007 wwdc) he might comment on it there. On 28-Aug-08, at 12:43 AM, Seth Willits wrote: Mouse event hit-testing in layer-backed views doesn't use the presentation tree. In other words, if a view

Re: Core Data - use of simple accessors vs. KVC

2008-08-27 Thread mmalc crawford
On Aug 27, 2008, at 9:43 PM, Caleb Strockbine wrote: There is no need to create a custom class if all you're doing is declaring accessor methods. Your reply did not state that. Perhaps I'm being dense here, but why would you use a category on NSManagedObject to declare accessors that only act

Re: Get current amount of available RAM

2008-08-27 Thread Bill Bumgarner
On Aug 27, 2008, at 9:31 PM, Alex Kac wrote: I need to check for free RAM before performing a specific operation. I've Googled and checked in the docs and I suspect its my terminology that's just out of whack. So what is the best way to find out how much available RAM is available in a Coc

Re: Get current amount of available RAM

2008-08-27 Thread Alex Kac
Right - but that doesn't work for my situation. I need actual free available physical RAM. Like when you use top and it shows you: PhysMem: 1173M wired, 5340M active, 2658M inactive, 9175M used, 1065M free. On Aug 27, 2008, at 11:40 PM, Charles Srstka wrote: On Aug 27, 2008, at 11:31 PM, A

Re: Core Data - use of simple accessors vs. KVC

2008-08-27 Thread Caleb Strockbine
On Aug 27, 2008, at 2:43 PM, Negm-Awad Amin and mmalc crawford argued: You can subclass NSManagedObject and add properties using @property and @dynamic, which means, that the accessors will be generated dynamically at run-time. (Without @dynamic you will get a compiler warning: incomplete imple

Layer-Backed Views, Mouse, Presentation Tree Bug?

2008-08-27 Thread Seth Willits
Mouse event hit-testing in layer-backed views doesn't use the presentation tree. In other words, if a view is animating from X to Y, the hit-testing uses the view frame at the end of the animation, not the frame that's currently visible. You can see this by placing with the CocoaSlides de

Re: Get current amount of available RAM

2008-08-27 Thread Charles Srstka
On Aug 27, 2008, at 11:31 PM, Alex Kac wrote: I need to check for free RAM before performing a specific operation. I've Googled and checked in the docs and I suspect its my terminology that's just out of whack. So what is the best way to find out how much available RAM is available in a C

Re: Bindings and empty text field nil assigments

2008-08-27 Thread mmalc crawford
On Aug 27, 2008, at 9:00 PM, Markus Spoettl wrote: I have objects storing simple scalar values (NSInteger, double). Those values/properties are bound to text fields. Now, if the user clears the text field and the underlying property gets updated, it's not simply setting the value to 0 or it

Get current amount of available RAM

2008-08-27 Thread Alex Kac
I need to check for free RAM before performing a specific operation. I've Googled and checked in the docs and I suspect its my terminology that's just out of whack. So what is the best way to find out how much available RAM is available in a Cocoa app? Alex Kac - President and Founder Web

Re: global key bindings

2008-08-27 Thread Eric Schlegel
On Aug 27, 2008, at 10:18 AM, David Reitter wrote: I've got an application that does not seem to react to global key bindings defined in the "Keyboard&Mouse" preference pane. The assigned key binding appears next to the menu item, but the application does not seem to react. The applicati

Re: Bindings and empty text field nil assigments

2008-08-27 Thread Quincey Morris
On Aug 27, 2008, at 21:00, Markus Spoettl wrote: I have objects storing simple scalar values (NSInteger, double). Those values/properties are bound to text fields. Now, if the user clears the text field and the underlying property gets updated, it's not simply setting the value to 0 or its

Bindings and empty text field nil assigments

2008-08-27 Thread Markus Spoettl
Hello List, I have objects storing simple scalar values (NSInteger, double). Those values/properties are bound to text fields. Now, if the user clears the text field and the underlying property gets updated, it's not simply setting the value to 0 or its equivalent, instead - (void)setNi

Re: File Extensions Problem

2008-08-27 Thread R.L. Grigg
On Aug 27, 2008, at 6:44 PM, Phil wrote: but, you want to make sure that your design doesn't *depend* on an implementation detail that's not specified in the contract. A QuickTime programmer here saw this comment and had a chuckle... ;-) Russ ___

Re: Core Animation : are text attributes animatable ?

2008-08-27 Thread Matt Long
I can't speak to the example you mention specifically, but I had tried to scale font sizes this way as well and never got the smooth transition either. Instead I used something like this: CATransform3D transform = CATransform3DMakeScale(factor, factor, factor); [mainLayer setTransform:tran

Re: Deep Recursion

2008-08-27 Thread Wade Tregaskis
Is there some way (environment variable?) to limit the stack size to something smaller, so that the exception (probably from stack corruption) would show off earlier? http://developer.apple.com/qa/qa2005/qa1419.html - Customizing Process Stack Size You can set limits/ulimits, define it at

Re: [Moderator] Re: iphone SDK questions

2008-08-27 Thread Scott Anguish
CocoaDev is still valuable for iPhone development. learning the basics of Objective-C, @properties, the shared foundation aspects.. Yes, as it is the fact that there is a disconnect there is confusing people. Attempts to clarify this are in the works. Please, if you have issues with the SDK

Re: [Moderator] Re: iphone SDK questions

2008-08-27 Thread James
Not to mention that the Apple evangelist in the videos tell us to use the cocoa-dev list as a resource I had emailed this group with that question, but the email was denied. Why is apples messaging so flip/ flop? James On Aug 27, 2008, at 9:30 PM, CocoaDev Admins wrote: I've been given

Deep Recursion

2008-08-27 Thread Gerriet M. Denkmann
Yesterday I did some nice recursive programming - the only problem was: I did not intend to do so. As a consequence, there was no defined end to the recursion, which made it essentially infinite. Well, memory - specifially stack space - is not infinite, so eventually I got an EXEC_BAD_ADDR

Re: File Extensions Problem

2008-08-27 Thread Phil
On Thu, Aug 28, 2008 at 10:59 AM, R.L. Grigg <[EMAIL PROTECTED]> wrote: > Hmm, I guess the wrinkle in this particular case is if the "contract" doesnt > specify something that the programmer assumes to be safe to do (like > enumerating backwards), how can you know how to implement your end? I guess

Re: NSFileManager Help

2008-08-27 Thread Jason Coco
On Aug 27, 2008, at 21:19 , J. Todd Slack wrote: Hi Jason -(BOOL)createDirectoryAtPath:(NSString*)path withIntermediateDirectories:(BOOL)createIntermediates attributes: (NSDictionary*)attributes error:(NSError**)error; I saw this, but if I have to deploy on 10.4, will this call fail on

[Moderator] Re: iphone SDK questions

2008-08-27 Thread CocoaDev Admins
I've been given explicit instructions to enforce the non-disclosure agreement when moderating this list. So that's what I do. The admins in the discussions groups should be following the same rules, and I've passed along the information. scott [moderator] On 27-Aug-08, at 7:30 PM, Bob Sabi

Core Animation : are text attributes animatable ?

2008-08-27 Thread Rodolfo Niborski
Hi everyone, My question is twofold : In the Core Animation Menu sample (Core Animation Programming Guide) the inclusion of this line of code : selectedLayer.string = @"new text"; in the -changeSelectedIndex: method results in an animation being triggered : the old text fades out while the n

Tiger Dictionary.app Format or Application

2008-08-27 Thread Rob Rohan
Hi everyone, I have been trying to find a way to add a dictionary to the dictionary application in Tiger. In Leopard, it is easy to do as Xcode comes with tools to help create the needed files. However, I can't find anything similar for Tiger - the file / bundle formats are different. I

global key bindings

2008-08-27 Thread David Reitter
I've got an application that does not seem to react to global key bindings defined in the "Keyboard&Mouse" preference pane. The assigned key binding appears next to the menu item, but the application does not seem to react. The application only has an icon with menu in the menu bar, but no

Re: NSFileManager Help

2008-08-27 Thread J. Todd Slack
Hi Jason -(BOOL)createDirectoryAtPath:(NSString*)path withIntermediateDirectories:(BOOL)createIntermediates attributes: (NSDictionary*)attributes error:(NSError**)error; I saw this, but if I have to deploy on 10.4, will this call fail on 10.4 since it is new in 10.5? No, it won't. You co

Re: NSFileManager Help

2008-08-27 Thread Jason Coco
On Aug 27, 2008, at 21:08 , J. Todd Slack wrote: Hi Jason, It simply does not create the directory. This is code that I had in another project that worked. What am I missing? Does the parent directory exist already (~/Application Support/Ring- Maker)? If not, this call will fail. Howeve

Re: NSFileManager Help

2008-08-27 Thread J. Todd Slack
Hi Jason, It simply does not create the directory. This is code that I had in another project that worked. What am I missing? Does the parent directory exist already (~/Application Support/Ring- Maker)? If not, this call will fail. However, since you're using 10.5 you should use this met

Re: NSFileManager Help

2008-08-27 Thread Jason Coco
On Aug 27, 2008, at 20:43 , J. Todd Slack wrote: Hi All, It simply does not create the directory. This is code that I had in another project that worked. What am I missing? Does the parent directory exist already (~/Application Support/Ring- Maker)? If not, this call will fail. However,

mark added object in NSArrayController as "dirty"?

2008-08-27 Thread Matt Neuburg
I've got a simple detail view backed by an NSArrayController. The view views the NSArrayController's selection. The NSArrayController manages an array of dictionaries, all very simple. I've implemented validateValue:... and it's being called when I want it to be (thanks to "validates immediately")

NSFileManager Help

2008-08-27 Thread J. Todd Slack
Hi All, 10.5.4, XCode 3.1 I have the following: NSFileManager *manager = [NSFileManager defaultManager]; NSString *applicationSupportDirectory = @"~/Library/Application Support/Ring-Maker/tmp/"; /* temp scratch space */ applicationSupportDirectory = [applicationSupportDirectory stringByE

Re: iphone SDK questions

2008-08-27 Thread Shawn Erickson
On Wed, Aug 27, 2008 at 4:30 PM, Bob Sabiston <[EMAIL PROTECTED]> wrote: > What's the deal with the iphone SDK talk? Ask a question here and you get > shut down. But talk is all over the discussion groups on Apple's own site. > For example, > > http://discussions.apple.com/thread.jspa?threadID=1

iphone SDK questions

2008-08-27 Thread Bob Sabiston
What's the deal with the iphone SDK talk? Ask a question here and you get shut down. But talk is all over the discussion groups on Apple's own site. For example, http://discussions.apple.com/thread.jspa?threadID=1443702&tstart=180 So why is this list any different? Bob

Re: File Extensions Problem

2008-08-27 Thread R.L. Grigg
On Aug 27, 2008, at 12:19 PM, Ken Thomases wrote: On Aug 27, 2008, at 1:50 PM, R.L. Grigg wrote: This is interesting. Correct me if I'm wrong but as a newb what I'm getting from all this is if I design my code around implementation specifics of frameworks or even the language I'm using, th

Re: File Extensions Problem

2008-08-27 Thread Charles Srstka
On Aug 27, 2008, at 1:50 PM, R.L. Grigg wrote: On Aug 22, 2008, at 4:24 PM, Thomas Engelmeier wrote: Am 22.08.2008 um 17:23 schrieb Michael Ash: On Fri, Aug 22, 2008 at 6:23 AM, Graham Cox <[EMAIL PROTECTED]> wrote: safe to delete items in the array at or higher than the current index. By

Re: WebFrame stopLoading in delegate crashes app

2008-08-27 Thread Ewan McDougall
On 22 Aug 2008, at 18:55, Nick Zitzmann wrote: On Aug 22, 2008, at 4:18 AM, Ewan McDougall wrote: Calling [WebFrame stopLoading] within the delegate didStartProvisionalLoadForFrame crashes the app. Is this a bug or am I doing something silly? What's the backtrace? If it's within the Web

Re: File Extensions Problem

2008-08-27 Thread Ken Thomases
On Aug 27, 2008, at 1:50 PM, R.L. Grigg wrote: This is interesting. Correct me if I'm wrong but as a newb what I'm getting from all this is if I design my code around implementation specifics of frameworks or even the language I'm using, that equates to a unrobust design, cuz if the underly

Problem with Info.plist in 10.5

2008-08-27 Thread Frédéric Testuz
Hi, I'm writing a Leopard-target application. Therefore I'm willing to use UTI and the new-style for the Info.plist. I red the AppKit release notes and I thought I didn't forget something. But when I'm calling the save panel I get this error message on the console: 2008-08-27 14:12:52.522

Re: Removing Applications from the Dock Programmatically

2008-08-27 Thread Ken Worley
On Aug 27, 2008, at 12:05 PM, Sherm Pendley wrote: On Wed, Aug 27, 2008 at 1:48 PM, Kevin Kicklighter <[EMAIL PROTECTED]> wrote: NSDictionary *theError = [[[NSDictionary alloc] init] autorelease]; [quitScript executeAndReturnError:&theError]; } That still

Re: File Extensions Problem

2008-08-27 Thread R.L. Grigg
On Aug 22, 2008, at 4:24 PM, Thomas Engelmeier wrote: Am 22.08.2008 um 17:23 schrieb Michael Ash: On Fri, Aug 22, 2008 at 6:23 AM, Graham Cox <[EMAIL PROTECTED]> wrote: safe to delete items in the array at or higher than the current index. By the definition of an array, removing an item onl

Re: Removing Applications from the Dock Programmatically

2008-08-27 Thread Sherm Pendley
On Wed, Aug 27, 2008 at 2:24 PM, Ken Worley <[EMAIL PROTECTED]> wrote: > > On Aug 27, 2008, at 12:05 PM, Sherm Pendley wrote: > >> On Wed, Aug 27, 2008 at 1:48 PM, Kevin Kicklighter >> <[EMAIL PROTECTED]> wrote: >>> >>> NSDictionary *theError = [[[NSDictionary alloc] init] >>> autorele

Re: NSCalendarDate to be deprecated

2008-08-27 Thread Tom Bernard
Please do jump in late, especially with a 20 microsecond suggestion. Full details are at http://bersearch.com/PrivateTechSupport/NSCalendarBenchmark/NSCalendarBench mark1.0.zip I have filed a bug report titled Planned NSCalendarDate deprecation yields slower performance Bug ID# 6179834 Thanks

Re: Removing Applications from the Dock Programmatically

2008-08-27 Thread Kevin Kicklighter
Good call, you are right. Fixed, and thanks, Kevin ___ 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/Unsubsc

Re: Removing Applications from the Dock Programmatically

2008-08-27 Thread Sherm Pendley
On Wed, Aug 27, 2008 at 1:48 PM, Kevin Kicklighter <[EMAIL PROTECTED]> wrote: > >NSDictionary *theError = [[[NSDictionary alloc] init] > autorelease]; > >[quitScript executeAndReturnError:&theError]; >} That still leaks the dictionary you created. Didn't you

Re: Crash in garbage collection, NSOpenPanel

2008-08-27 Thread Bill Bumgarner
On Aug 27, 2008, at 10:03 AM, David Melgar wrote: I'm using leopard 10.5.4 and Xcode 3.1. Do I need to do a clean build after the update or is it independent of my build? Please file a bug and attach some crash logs. If you have reproducible steps, please attach them to. And send me the

Re: Core Data - use of simple accessors vs. KVC

2008-08-27 Thread mmalc crawford
On Aug 27, 2008, at 10:36 AM, Negm-Awad Amin wrote: Am Mi,27.08.2008 um 19:19 schrieb mmalc crawford: On Aug 27, 2008, at 9:48 AM, Negm-Awad Amin wrote: Am Mi,27.08.2008 um 18:22 schrieb Oleg Krupnov: Suppose I have a Core Data model object MyObject with property myProp defined in the m

Re: confused about allocating and releasing objects

2008-08-27 Thread mmalc crawford
On Aug 27, 2008, at 3:57 AM, Jonathan del Strother wrote: Whats the difference between the two methods? (I know the second one creates a blank dictionary first, and then loads the file - but I mean which one is better for what purpose? - why would I choose one over the other). Use whichev

Re: Removing Applications from the Dock Programmatically

2008-08-27 Thread Kevin Kicklighter
Thanks to all that helped, here's the code working: NSUserDefaults *theDefaults = [NSUserDefaults standardUserDefaults]; NSDictionary *dockDict = [theDefaults persistentDomainForName:@"com.apple.dock"]; NSMutableDictionary *mutableDockDict=[dockDict mutableCopyWithZone:nil];

Re: Core Data - use of simple accessors vs. KVC

2008-08-27 Thread Negm-Awad Amin
Am Mi,27.08.2008 um 19:19 schrieb mmalc crawford: On Aug 27, 2008, at 9:48 AM, Negm-Awad Amin wrote: Am Mi,27.08.2008 um 18:22 schrieb Oleg Krupnov: Suppose I have a Core Data model object MyObject with property myProp defined in the model editor's schema. Can I use the simple accessors li

Best practice for actions invocation across multi-tiered subviews

2008-08-27 Thread Richard Adams
I feel this is a relatively newbie question, however the archive searching at http://search.lists.apple.com/ seems unavailable. I am wondering what the best implementation practice is for the following scenario I have a the following object view hierarchy (simplified for discussion) Root V

Re: CoreData, SQLite and GUID

2008-08-27 Thread mmalc crawford
On Aug 27, 2008, at 9:33 AM, Michael Ash wrote: On Wed, Aug 27, 2008 at 5:30 AM, Amy Heavey <[EMAIL PROTECTED] > wrote: I use an application that I believe is written using CoreData. It is currently quite tedious to enter data into this application, and the data I need entering is already in

Re: Core Data - use of simple accessors vs. KVC

2008-08-27 Thread mmalc crawford
On Aug 27, 2008, at 9:48 AM, Negm-Awad Amin wrote: Am Mi,27.08.2008 um 18:22 schrieb Oleg Krupnov: Suppose I have a Core Data model object MyObject with property myProp defined in the model editor's schema. Can I use the simple accessors like this: [myObj myProp] [myObj setMyProp] or am I force

re: NSAppleScript shies away from porcupines

2008-08-27 Thread has
Jason Coco wrote: I did a test with this... it seems that the code to resolve the alias in AppleScript doesn't like non-latin encoded pathnames. I think you're right - from dim and distant memory I seem to recall that AppleScript's ' as alias' coercion often doesn't work with non-ASCII

Re: Crash in garbage collection, NSOpenPanel

2008-08-27 Thread David Melgar
I'm using leopard 10.5.4 and Xcode 3.1. Do I need to do a clean build after the update or is it independent of my build? Sent from my iPhone On Aug 27, 2008, at 11:43 AM, Corbin Dunn <[EMAIL PROTECTED]> wrote: Upgrading to the latest software update should fix this. What OS version are yo

Re: Core Data - use of simple accessors vs. KVC

2008-08-27 Thread Negm-Awad Amin
Am Mi,27.08.2008 um 18:22 schrieb Oleg Krupnov: A simple newbie question: Suppose I have a Core Data model object MyObject with property myProp defined in the model editor's schema. Can I use the simple accessors like this: [myObj myProp] [myObj setMyProp] or am I forced to use the rather c

Re: Core Data - use of simple accessors vs. KVC

2008-08-27 Thread Negm-Awad Amin
Am Mi,27.08.2008 um 18:22 schrieb Oleg Krupnov: A simple newbie question: Suppose I have a Core Data model object MyObject with property myProp defined in the model editor's schema. Can I use the simple accessors like this: [myObj myProp] [myObj setMyProp] or am I forced to use the rather c

Re: confused about allocating and releasing objects

2008-08-27 Thread Sherm Pendley
On Wed, Aug 27, 2008 at 7:22 AM, Graham Cox <[EMAIL PROTECTED]> wrote: > > Just thinking aloud, but I wonder if the plug-in is being executed outside > of the app's autorelease pool stack? The freeze could be because autorelease > is being called but there's no pool available. In general, that doe

Re: CoreData, SQLite and GUID

2008-08-27 Thread Michael Ash
On Wed, Aug 27, 2008 at 5:30 AM, Amy Heavey <[EMAIL PROTECTED]> wrote: > Hi, > > Please accept my apologies if I am posting to the wrong list, > > I use an application that I believe is written using CoreData. It is > currently quite tedious to enter data into this application, and the data I > nee

Core Data - use of simple accessors vs. KVC

2008-08-27 Thread Oleg Krupnov
A simple newbie question: Suppose I have a Core Data model object MyObject with property myProp defined in the model editor's schema. Can I use the simple accessors like this: [myObj myProp] [myObj setMyProp] or am I forced to use the rather clunky valueForKey/setVakyeForKey messages? I though

Re: Crash in garbage collection, NSOpenPanel

2008-08-27 Thread Corbin Dunn
Upgrading to the latest software update should fix this. What OS version are you on? corbin On Aug 27, 2008, at 8:25 AM, David wrote: Hello,Sometimes my application crashes when I go to run an NSOpenPanel. The app is using garbage collection and runs on Leopard only. I found the following

Re: CoreData, SQLite and GUID

2008-08-27 Thread Mike Abdullah
Trying to manipulate the store yourself is a bad idea. Instead, since this application is probably written entirely in Cocoa, I'd make use of GUI scripting to batch handle the insertion of data. On 27 Aug 2008, at 10:30, Amy Heavey wrote: Hi, Please accept my apologies if I am posting to t

Crash in garbage collection, NSOpenPanel

2008-08-27 Thread David
Hello,Sometimes my application crashes when I go to run an NSOpenPanel. The app is using garbage collection and runs on Leopard only. I found the following thread http://www.cocoabuilder.com/archive/message/cocoa/2008/5/28/208589 which makes it look like a known and unresolved issue with NSOpenPan

CoreData, SQLite and GUID

2008-08-27 Thread Amy Heavey
Hi, Please accept my apologies if I am posting to the wrong list, I use an application that I believe is written using CoreData. It is currently quite tedious to enter data into this application, and the data I need entering is already in a mysql database anyway. I'd like to be able to ins

Re: [NSWindow] Is it a bug in Cocoa or a task for the developer?

2008-08-27 Thread I. Savant
On Wed, Aug 27, 2008 at 7:02 AM, Stéphane Sudre <[EMAIL PROTECTED]> wrote: > If you have a Window miniaturized in the Dock and you send it a orderOut: > message, the window is not removed from the Dock. > > Is it a bug in Cocoa or is it the responsibility of the developer to > deminiaturize: the wi

Re: confused about allocating and releasing objects

2008-08-27 Thread Devon Ferns
If you had access to the NSDictionary source code you'd find that the NSDictionary's +dictionaryWithContentsOfFile:(NSString*)fileName would probably look something like this: +(NSDictionary*) dictionaryWithContentsOfFile:(NSString*)fileName { return [[[NSDictionary alloc] initWithConte

Re: 2 NSRuleEditor questions?

2008-08-27 Thread Jamie Phelps
Hi, Laurent. I realize this is quite old, but I have been wrestling with NSRuleEditor myself for a while. The main difference between NSTableView and NSRuleEditor is that NSRuleEditor is more accurately understood as a tree or network whereas NSTableView is a multi-dimensional array, [rows][columns

Re: How to create rounded view for iPhone App

2008-08-27 Thread I. Savant
On Tue, Aug 26, 2008 at 10:54 PM, SridharRao M <[EMAIL PROTECTED]> wrote: > I want to create rounded view for my app. > Please any one suggest me how to do it. In addition to the "it's under NDA" comment, I'll add that it's public knowledge that the iPhone SDK is Cocoa. If you rephrase your que

Re: applicationDockMenu: not called

2008-08-27 Thread Chris Idou
Nevermind. I realised that I have an App delegate for a subordinate Nib, and if I remove that, it starts working. --- On Wed, 8/27/08, Chris Idou <[EMAIL PROTECTED]> wrote: > From: Chris Idou <[EMAIL PROTECTED]> > Subject: applicationDockMenu: not called > To: cocoa-dev@lists.apple.com > Date: W

NSRuleEditor with Multiple Root Criteria Yields Empty Row

2008-08-27 Thread Jamie Phelps
Hi, all. I've been banging my head against this for some time now and I'm at a bit of a loss. I've searched the archives and haven't found much info on NSRuleEditor other than before Leopard was released and it was taboo because of NDA. Bear with me as I've done some experimentation that mi

Re: how to release CFData

2008-08-27 Thread lajos kamocsay
Thanks! Exactly what I needed. -lajos On Aug 27, 2008, at 1:03 AM, Phil wrote: On Wed, Aug 27, 2008 at 4:26 PM, lajos kamocsay <[EMAIL PROTECTED]> wrote: I have found several ways to create CFData, but how do I release a CFDataRef? CFRelease(). More information about Core Foundation's m

Re: Design Question: Bindings & Custom Views

2008-08-27 Thread Paul Bruneau
On Aug 27, 2008, at 8:10 AM, Oleg Krupnov wrote: I am building a custom view that can display and edit some polymorphic objects. Furthermore, the objects can be composite, i.e. contain child objects hierarchically. Now I want to bind this custom view to the model through a controller (NSTreeCon

Design Question: Bindings & Custom Views

2008-08-27 Thread Oleg Krupnov
I am building a custom view that can display and edit some polymorphic objects. Furthermore, the objects can be composite, i.e. contain child objects hierarchically. Now I want to bind this custom view to the model through a controller (NSTreeController in my case). In the examples I have seen (G

applicationDockMenu: not called

2008-08-27 Thread Chris Idou
I need to create a dynamic dock menu. I've found that applicationDockMenu: app delegate method doesn't get called if I programmatically open a document on startup either from applicationDidFinishLaunching or awakeFromNib via openDocumentWithContentsOfURL. Is it a bug? Is there a place even lat

Re: confused about allocating and releasing objects

2008-08-27 Thread Memo Akten
Thanks guys, its starting to become a bit clearer now. I'll use the alloc / init / release route for now until I"ve read through the memory management doc Cheers, Memo. On 27 Aug 2008, at 12:22, Jonathan del Strother wrote: On Wed, Aug 27, 2008 at 12:13 PM, Memo Akten <[EMAIL PROTECTED]>

Re: confused about allocating and releasing objects

2008-08-27 Thread Jonathan del Strother
On Wed, Aug 27, 2008 at 12:13 PM, Memo Akten <[EMAIL PROTECTED]> wrote: > ok thanks, I"ve added that link to my ever growing Cocoa bookmarks!! > I'm just writing a Quartz Composer plugin using the QCPlugIn API and ran > into a problem regarding this, my question isn't related to the QCPlugIn API >

Re: confused about allocating and releasing objects

2008-08-27 Thread Graham Cox
On 27 Aug 2008, at 9:13 pm, Memo Akten wrote: At the start of the plugin (in enableExecution) I use the code: - (void) loadCardXMLData { NSString *dataPath = @"/data.plist"; cardsLoadedData = [NSDictionary dictionaryWithContentsOfFile: dataPath]; // cardsLoadedData = [[NSDictionary

Re: confused about allocating and releasing objects

2008-08-27 Thread Memo Akten
ok thanks, I"ve added that link to my ever growing Cocoa bookmarks!! I'm just writing a Quartz Composer plugin using the QCPlugIn API and ran into a problem regarding this, my question isn't related to the QCPlugIn API so I'm posting here first. At the start of the plugin (in enableExecutio

[NSWindow] Is it a bug in Cocoa or a task for the developer?

2008-08-27 Thread Stéphane Sudre
If you have a Window miniaturized in the Dock and you send it a orderOut: message, the window is not removed from the Dock. Is it a bug in Cocoa or is it the responsibility of the developer to deminiaturize: the window - if needed - before calling orderOut:? Easily reproducible in IB withou

Re: confused about allocating and releasing objects

2008-08-27 Thread Jonathan del Strother
On Wed, Aug 27, 2008 at 11:45 AM, Memo Akten <[EMAIL PROTECTED]> wrote: > HI All, i'm a bit confused about the 2 scenarios: > > NSDictionary *myData1 = [NSDictionary > dictionaryWithContentsOfFile:@"mydata.plist"]; // this one I don't > need to release when I'm done? > NSDictionary *myData

Re: xcode: how to not Go with Instruments

2008-08-27 Thread steph thirion
Thanks all, I guess I hadn't understood the concept of 'Go'. I realize it's an off topic question, but since I was already here, and there's probably more xcode users here than on any other list (including the xcode one), I took the lazy way. Maybe I'll join the xcode list in the future, bu

confused about allocating and releasing objects

2008-08-27 Thread Memo Akten
HI All, i'm a bit confused about the 2 scenarios: NSDictionary *myData1 = [NSDictionary dictionaryWithContentsOfFile:@"mydata.plist"]; // this one I don't need to release when I'm done? NSDictionary *myData2 = [[NSDictionary alloc] initWithContentsOfFile:@"mydata.plist"]; // this one I do

Re: Removing Applications from the Dock Programmatically

2008-08-27 Thread Negm-Awad Amin
Am Mi,27.08.2008 um 03:20 schrieb Graff: I forgot to mention that you'll have to force the Dock to re-load its preferences after fooling around like this. I really only know how to do this through the terminal or through AppleScript, although I'm sure there are other ways to do it IIRC, yo