Re: UIElement off/on?

2009-02-03 Thread Stephen J. Butler
On Tue, Feb 3, 2009 at 4:55 PM, Oliver Moran wrote: > I am writing an application that for the most part will run with > "Application is agent (UIElement)" enabled in the Info.plist. Occasionally > however I will want the application to run as a normal appliation (Dock > icon, menubar, APPLE+Tab e

sqlite, xml stores losing data from many-to-many relationship

2009-02-03 Thread C. Thomas
I have an odd problem; the binary type data store faithfully stores the contents of a many-to-many relationship in my program (the inverse relationship *is* defined). However, when I load the data from an SQLite or XML store, the data in this relationship is gone. Anyone have clues as to

UIElement off/on?

2009-02-03 Thread Oliver Moran
Hi, I am writing an application that for the most part will run with "Application is agent (UIElement)" enabled in the Info.plist. Occasionally however I will want the application to run as a normal appliation (Dock icon, menubar, APPLE+Tab etc.). Is there a way to programatically turn UI

Re: Advanced NSTextView use

2009-02-03 Thread Martin Wierschin
On Feb 3, 2009, at 5:24 PM, Chris Idou wrote: So I want it that if you try and delete any character that is part of a token, it deletes the entire token. So I'm overriding rangeForUserTextChange to return a different range if the current range includes any part of a token. This seems to w

Re: Confused about NSTrackingAreas with autoscroll

2009-02-03 Thread Quincey Morris
On Feb 3, 2009, at 22:49, Luke Evans wrote: Incidentally, I thought I saw that logging the NSTrackingArea instance when you've just created one, produces different output to logging the instance sent to you in a mouse event (i.e. the descriptions were different). I'm sure that's no more th

Re: Zooming and panning an NSImageView

2009-02-03 Thread Rob Keniger
On 04/02/2009, at 4:13 PM, Christian Graus wrote: We have a program that uses the NSImageView to show images, currently it forces the image to be shown so it fits the window ( that is, they are a lot bigger than what we're seeing ). i want to add the ability to animate a zoom into an area

Re: strange NSUndoManager + KVC inconsistency.

2009-02-03 Thread Quincey Morris
On Feb 3, 2009, at 20:58, ebluga...@mac.com wrote: I have a doc based project with a class that stores all of its properties in a Mutable dictionary called : store. this Class has wrapper methods for valueForKey: and setValue:forKey: its been working great ! ui elements bind to it, you don't n

Re: Confused about NSTrackingAreas with autoscroll

2009-02-03 Thread Luke Evans
Thanks Quincey for your thoughts. The evidence you've cited so far only points to the tracking area being in the "wrong" place, not necessarily to it being the wrong tracking area. I'm inclined to think that the misbehavior is an artifact of view coordinate systems. Well, I'm pretty confi

Re: Analyzing Core Data Conflict List

2009-02-03 Thread Steve Steinitz
Hi Ben, Oops, I omitted some key information in the previous message... We wrote: Here's what I added to awakeFromNib in my NSArrayController subclass: [request setRelationshipKeyPathsForPrefetching: [NSArray arrayWithObjects: @"customer", @"salesPerson", @"payments", @"lineItems", @"bikes",

Re: Core Data: mutableArrayValueForKey and addObject

2009-02-03 Thread mmalc Crawford
On Feb 3, 2009, at 6:29 PM, Luc Vandal wrote: I did find documentation about this but it's lacking examples and I'm confused mmalc _

Re: strange NSUndoManager + KVC inconsistency.

2009-02-03 Thread Clark Cox
There is a well-known bug in the current NSUndoManager implementation where you are unable to register methods that the undo manager itself also responds to. Since all objects respond to the KVC methods, the bug shows itself here. See

Re: Core Data: mutableArrayValueForKey and addObject

2009-02-03 Thread Quincey Morris
On Feb 3, 2009, at 18:29, Luc Vandal wrote: A1 = customers array with a to-many relationship to invoices A2 = invoices array with a relationship to customers Bindings set in IB as Content Set -> Customers.selection.invoices with invoices as the model key path. I understand that calling addO

Zooming and panning an NSImageView

2009-02-03 Thread Christian Graus
Hi guys We have a program that uses the NSImageView to show images, currently it forces the image to be shown so it fits the window ( that is, they are a lot bigger than what we're seeing ). i want to add the ability to animate a zoom into an area, after a user drags a box over that area, and then

strange NSUndoManager + KVC inconsistency.

2009-02-03 Thread eblugamma
Hi List, please help. I have a doc based project with a class that stores all of its properties in a Mutable dictionary called : store. this Class has wrapper methods for valueForKey: and setValue:forKey: its been working great ! ui elements bind to it, you don't need to declare the propertie

Re: what does LSUIElement really do?

2009-02-03 Thread Mark Munz
So I had a chance to look at the docs (rather than going off my memory): In the Runtime Configuration Guidelines you'll find the definitions for these keys: LSBackgroundOnly LSBackgroundOnly (Boolean) specifies whether this application runs only in the background. If this key exists and is set t

Re: AquaticPrime Config.php + PayPal Advanced Variables Not Working

2009-02-03 Thread Chunk 1978
someone else told me that in order to use custom variables on my paypal buttons i needed to set up IPN, and that the variable would become apart of the button's URL... but i'm trying to avoid setting up IPN simply because it's seems like overkill and complicated for my tired mind... so essentially

Core Data: mutableArrayValueForKey and addObject

2009-02-03 Thread Luc Vandal
Hi, A1 = customers array with a to-many relationship to invoices A2 = invoices array with a relationship to customers Bindings set in IB as Content Set -> Customers.selection.invoices with invoices as the model key path. I understand that calling addObject directly is a KVO no-no and that I

Re: processName and Bundle Name -- the same?

2009-02-03 Thread Kyle Sluder
On Tue, Feb 3, 2009 at 6:43 PM, Sean McBride wrote: > When/if you localise your app, you may localise CFBundleName, yet a file/ > folder name on disk can only be in one language, so CFBundleName may not > be the best choice. Then you should localize your Application Support folder as well: http:/

Re: Keyword Filtering & Weekday Selection

2009-02-03 Thread Nick Zitzmann
On Feb 3, 2009, at 6:43 PM, Walker Argendeli wrote: 1. Let say you have a list of keywords (say two separate arrays) and you want to be able to filter a table/calendar view/etc. by a combination of a choice from each of the arrays. How would you go about creating something like that in in

Re: what does LSUIElement really do?

2009-02-03 Thread Bill Janssen
Mark Munz wrote: > LSUIElement allows you to link to AppKit and connect to the > WindowServer. That means you can create floating windows, system > menus, etc.. Or UI elements -- as the name suggestions. > > I believe LSBackgroundOnly is more limited in user interaction, > although it works well

Re: Keyword Filtering & Weekday Selection

2009-02-03 Thread Sean McBride
On 2/3/09 8:43 PM, Walker Argendeli said: >2. Secondly, let's say I want to be able to select day(s) of the >week. I saw an example like this softworksfiles.com/weekday.png in an >application, but am not sure how to replicate it. In IB you want 'square button' (which is an NSButton). Then you w

Re: AquaticPrime Config.php + PayPal Advanced Variables Not Working

2009-02-03 Thread Sherm Pendley
On Feb 3, 2009, at 7:21 PM, Chunk 1978 wrote: $appLicense = $_POST["appLicense"]; Try this instead: $appLicense = $_GET["appLicense"]; isn't this the correct method to incorporate customized php variables with the AquaticPrime scripts? It depends. When an HTML form has a "method" attribut

Re: Keyword Filtering & Weekday Selection

2009-02-03 Thread Kyle Sluder
On Tue, Feb 3, 2009 at 8:43 PM, Walker Argendeli wrote: > I'm relatively new to Cocoa, and I have two questions: > 1. Let say you have a list of keywords (say two separate arrays) and you > want to be able to filter a table/calendar view/etc. by a combination of a > choice from each of the arrays.

Keyword Filtering & Weekday Selection

2009-02-03 Thread Walker Argendeli
I'm relatively new to Cocoa, and I have two questions: 1. Let say you have a list of keywords (say two separate arrays) and you want to be able to filter a table/calendar view/etc. by a combination of a choice from each of the arrays. How would you go about creating something like that in i

Advanced NSTextView use

2009-02-03 Thread Chris Idou
I'm trying to use NSTextView so that it has tokens in the text (kind of like NSTokenField). So I want it that if you try and delete any character that is part of a token, it deletes the entire token. So I'm overriding rangeForUserTextChange to return a different range if the current range incl

Re: problems resetting timer interval.

2009-02-03 Thread Memo Akten
Hi Ron, thanks for the reply. Turns out I had an error somewhere else, my code works fine now :P Cheers, Memo. Re: problems resetting timer interval. Ron Fleckner Thu, 29 Jan 2009 16:02:14 -0800 I basically do the same and it works for me, but there are some slight differences. Transl

Re: AquaticPrime Config.php + PayPal Advanced Variables Not Working

2009-02-03 Thread Chunk 1978
excuse me. there was a typo in my example code. it should have read: if ($appLicense == "Software-A") { $key = "//the key for Software-A"; $privateKey = "//the private key for Software-A"; } also, $licenseExtension = ""; is not important here. On Tue, Feb 3, 200

AquaticPrime Config.php + PayPal Advanced Variables Not Working

2009-02-03 Thread Chunk 1978
i have AquaticPrime set up with PayPal for a small software license that i sell maybe once every 2 months. i'm releasing something new soon and i'm trying to customize the AquaticPrime .PHP scripts to handle the production and emailing of 2 different licenses depending on what the customer is buyi

Re: applicationShouldOpenUntitledFile in Core Data App?

2009-02-03 Thread Andy Lee
On Feb 3, 2009, at 3:06 PM, Jean-Nicolas Jolivet wrote: I tried overriding the applicationShouldOpenUntitledFile in my App delegate P.S. This may sound nitpicky, but I suspect you weren't actually *overriding* the method but merely *implementing* it. You're only overriding a method if it

Re: garbage collection is ON NSCFDictionary crash

2009-02-03 Thread Sean McBride
On 2/3/09 12:31 PM, Greg Parker said: > >On Feb 3, 2009, at 9:30 AM, Sean McBride wrote: > >> On 2/3/09 7:48 AM, Bill Bumgarner said: >> >>> Exception Codes: KERN_INVALID_ADDRESS at 0xa1b1c1d8 >>> >>> That seems like a rather suspicious address. a1b1c1d8? Fishy. >> >> I saw an a1b1c1

Re: applicationShouldOpenUntitledFile in Core Data App?

2009-02-03 Thread Andy Lee
On Feb 3, 2009, at 6:02 PM, Jean-Nicolas Jolivet wrote: yeah I just wrote it from memory in my email, in my app, I actually copied the method declaration from the docs... That's the way to do it IMO for any method name that I don't trust myself to remember. :) FWIW, I made a quick Core Dat

Re: applicationShouldOpenUntitledFile in Core Data App?

2009-02-03 Thread Sean McBride
On 2/3/09 6:02 PM, Jean-Nicolas Jolivet said: >yeah I just wrote it from memory in my email, in my app, I actually >copied the method declaration from the docs... (I'm 100% sure it's not >a typo/delegate connection problem) applicationShouldOpenUntitledFile: works in my document-based Core Data a

Re: processName and Bundle Name -- the same?

2009-02-03 Thread Sean McBride
On 2/3/09 11:12 AM, Stuart Malin said: >In order to locate certain application-specific directories, I use the >application's name (say, for example /Library/ > > >Presently I am using >[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleName"] >to get the application name. When/if you lo

Re: NSMatrix, scroll wheel and tool tips

2009-02-03 Thread Graham Cox
On 4 Feb 2009, at 4:45 am, David Blanton wrote: I have an NSMatrix (sub-classed) of NSImage cells. I set the appropriate tool tip for each cell. When scrolling the matrix using the knob or scroll buttons the tool tips are fine. When scrolling the matrix using the wheel on the mouse the tool

Re: Confused about NSTrackingAreas with autoscroll

2009-02-03 Thread Quincey Morris
On Feb 3, 2009, at 14:14, Luke Evans wrote: This really looks like the tracking areas established on the view when the original mouse down event (that starts the drag) are cached and remain in play during the drag operation. Can anyone confirm if this is the case? I've never seen anything

Re: Tab

2009-02-03 Thread Peter Blazejewicz
hi Stefan, have you considered using standard (in terms of Apple HIG) Dock item and/or Apple's menu bar item? To get insight on menu bar items see that 3rd party compilation list: http://menu.jeweledplatypus.org/#/ http://menu.jeweledplatypus.org/meta/ If anything vast majority of developers u

Re: Tab

2009-02-03 Thread Seth Willits
On Feb 3, 2009, at 2:35 PM, Stefan Groschupf wrote: Is there any kind of widget that does this already in one of the frameworks? Or do I have to build this from scratch? What would I use to build it from scratch? Scratch. You'll need to create a borderless custom window and draw the tab i

Re: applicationShouldOpenUntitledFile in Core Data App?

2009-02-03 Thread Jean-Nicolas Jolivet
yeah I just wrote it from memory in my email, in my app, I actually copied the method declaration from the docs... (I'm 100% sure it's not a typo/delegate connection problem) On 3-Feb-09, at 3:20 PM, Andy Lee wrote: On Feb 3, 2009, at 3:06 PM, Jean-Nicolas Jolivet wrote: I tried overridin

Tab

2009-02-03 Thread Stefan Groschupf
Hi All, sorry I'm a newbie to cocoa. I'm looking for a hint, maybe just the right term for a search to find more information. I would love to implement a tab that sits on the screen boarder and if I press it it scrolls out my window. Very much as in OS 9 where you could drag a finder window

Trying to animate filters set on custom view.

2009-02-03 Thread Andrei Freeman
I have a custom view and two CIFilters in an array. The two filters are a CIGaussianBlur and a CIAffineTransform I'm calling [[[my custView animator] layer] setFilters:arrOfFilter] The view redraws as expected but does not animate to the new filters. It simply vanishes while being replaced wi

Re: what does LSUIElement really do?

2009-02-03 Thread Mark Munz
LSUIElement allows you to link to AppKit and connect to the WindowServer. That means you can create floating windows, system menus, etc.. Or UI elements -- as the name suggestions. I believe LSBackgroundOnly is more limited in user interaction, although it works well with AppleEvents. If you're p

Re: Confused about NSTrackingAreas with autoscroll

2009-02-03 Thread Luke Evans
This really looks like the tracking areas established on the view when the original mouse down event (that starts the drag) are cached and remain in play during the drag operation. Can anyone confirm if this is the case? Overtly updating the tracking areas after calling '-autoscroll:' by di

re: Core Data: arrangedObjects for multiple selections

2009-02-03 Thread Ben Trumbull
Hi Luc, I have an NSArrayController that has bindings to another NSArrayController: A1 Content Set -> A2 When the selection changes (single selection) in A2, arrangedObjects in A1 returns the correct number of objects but if I do a multiple selection in A2, then arrangedObjects in A1 returns n

re: CoreData migration and file change

2009-02-03 Thread Ben Trumbull
I have a CoreData application and am migrating the data store. When the user opens an old store the migration happens automatically creating a new file. The problem is when the user saves the first time after the migration he gets the message: "This documentÂ’s file has been changed by another ap

Re: Analyzing Core Data Conflict List

2009-02-03 Thread Ben Trumbull
You may also wish to refresh the objects more frequently. The larger the staleness interval the more likely an optimistic locking exception will occur due to a large window for simultaneous edits. Is that as simple as just decreasing the ManagedObjectContext's staleness interval? I do that

Re: processName and Bundle Name -- the same?

2009-02-03 Thread Benjamin Dobson
On 3 Feb 2009, at 21:12:14, Stuart Malin wrote: In order to locate certain application-specific directories, I use the application's name (say, for example / Library/ Presently I am using [NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleName"] to get the application name. (in my

nsarraycontroller "auto rearrange content"

2009-02-03 Thread Chris Anderson
Hello, Been bashing my head on this one. Did lots of googling and apple docs reading but haven't found an answer so any help would be appreciated. As an example I have 2 entities in a Core Data app... Project Project.name Project.startDate Type Type.name ...add a one-to-one relationship..

Re: Core Data, Garbage Collection and SQL Store

2009-02-03 Thread Ben Trumbull
On Jan 30, 2009, at 9:37 AM, Sean McBride wrote: On 1/30/09 9:14 AM, Kevin Ross said: It has recently come up on the list again about a known issue when using Core Data + G.C. + SQL NSPersistantDocumentStore. I have a document based application that I am about to release where I have been usi

processName and Bundle Name -- the same?

2009-02-03 Thread Stuart Malin
In order to locate certain application-specific directories, I use the application's name (say, for example /Library/ Presently I am using [NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleName"] to get the application name. (in my info.plist, the Bundle Name is set from $(PRODUCT_N

NSTreeController vs. NSMenu

2009-02-03 Thread Alexey Zakhlestin
Is it possible to bind NSMenu to NSTreeController somehow? It looks like they could be a very natural union :) -- Alexey Zakhlestin http://www.milkfarmsoft.com/ ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests o

Re: garbage collection is ON NSCFDictionary crash

2009-02-03 Thread Greg Parker
On Feb 3, 2009, at 9:30 AM, Sean McBride wrote: On 2/3/09 7:48 AM, Bill Bumgarner said: Exception Codes: KERN_INVALID_ADDRESS at 0xa1b1c1d8 That seems like a rather suspicious address. a1b1c1d8? Fishy. I saw an a1b1c1d1+ crash the other day (also a GC app), and thought I

Re: applicationShouldOpenUntitledFile in Core Data App?

2009-02-03 Thread Andy Lee
On Feb 3, 2009, at 3:06 PM, Jean-Nicolas Jolivet wrote: I tried overriding the applicationShouldOpenUntitledFile in my App delegate Is this a typo in your email, or did you leave out the colon in your method name? The method should be declared like this: - (BOOL)applicationShouldOpenUntitl

applicationShouldOpenUntitledFile in Core Data App?

2009-02-03 Thread Jean-Nicolas Jolivet
I tried overriding the applicationShouldOpenUntitledFile in my App delegate to prevent the creation of new documents when my app is launched, however it doesn't seem to be working (the method is never invoked). Could this be because I'm using a Core Data Document-based app? If so, is ther

Re: Core Data: arrangedObjects for multiple selections

2009-02-03 Thread Luc Vandal
Nice! That worked! However, should I use Content Array or Content Array for Multiple Selection? Are they basically the same thing but allow you to define different behaviors depending on how many master items were selected? Luc On 3-Feb-09, at 2:31 PM, Timothy Larkin wrote: -BEGIN

Re: garbage collection is ON NSCFDictionary crash

2009-02-03 Thread Jesse Grosjean
>>> Are you creating any CFDictionaries that have any of the atypical storage >>> patterns? Not that I can find, I can't find any CFMutableDictionary or CFDictionary references anywhere in my code. > Do you have a software update mechanism that checks every now and then? > >Ahh... it appe

Core Data: Delete stops at first object in Cascade

2009-02-03 Thread Jerry Krinock
Here's a piece of my object graph, with entities X, B, T and J. X and J have relationships to other objects in the greater graph, but B and T have only those shown. Cascade---> Cascade-->> Nullify---> -->> X B T J <<-- <<--Nullify <--Nu

what does LSUIElement really do?

2009-02-03 Thread Bill Janssen
Over in the Mac-Python world, we're wondering whether /System/Library/Frameworks/Python.framework/Resources/Python.app might benefit from having LSBackgroundOnly or LSUIElement set in its Info.plist. It seems to me that both of these settings allow access to the window system and other frameworks,

Re: Stroking a CATextLayer

2009-02-03 Thread David Duncan
On Feb 3, 2009, at 7:43 AM, Benjamin Dobson wrote: On 3 Feb 2009, at 15:05:51, glenn andreas wrote: On Feb 3, 2009, at 8:50 AM, Benjamin Dobson wrote: Has anyone managed this, short of creating a separate layer for the stroke? The Google machine doesn't seem to provide any answers. Since

Core Data: arrangedObjects for multiple selections

2009-02-03 Thread Luc Vandal
Hi! I have an NSArrayController that has bindings to another NSArrayController: A1 Content Set -> A2 When the selection changes (single selection) in A2, arrangedObjects in A1 returns the correct number of objects but if I do a multiple selection in A2, then arrangedObjects in A1 returns

CoreData migration and file change

2009-02-03 Thread Dan Grassi
I have a CoreData application and am migrating the data store. When the user opens an old store the migration happens automatically creating a new file. The problem is when the user saves the first time after the migration he gets the message: "This document’s file has been changed by ano

Re: Read lines from very large text file

2009-02-03 Thread Scott Ribe
> Might it help to look at the source for 'more' and/or 'less' (the Unix > utilities)? No idea whether they handle non-native line breaks competently. (Many many tools do not.) -- Scott Ribe scott_r...@killerbytes.com http://www.killerbytes.com/ (303) 722-0567 voice ___

Re: garbage collection is ON NSCFDictionary crash

2009-02-03 Thread Jesse Grosjean
> GC support in Sparkle is pretty new, and I remember seeing some GC- > related bugs last time I browsed the source. Jesse, are you using > recent Sparkle code? I am using the GC supported version of Sparkle, but I haven't updated for a month or so. I'll look into that. Thanks. Jesse

NSMatrix, scroll wheel and tool tips

2009-02-03 Thread David Blanton
I have an NSMatrix (sub-classed) of NSImage cells. I set the appropriate tool tip for each cell. When scrolling the matrix using the knob or scroll buttons the tool tips are fine. When scrolling the matrix using the wheel on the mouse the tool tips are incorrect. Touching the knob after scro

Re: garbage collection is ON NSCFDictionary crash

2009-02-03 Thread Sean McBride
On 2/3/09 9:23 AM, Bill Bumgarner said: > Ahh... it appears that you do. Sparkle. Cool -- but -- it >periodically checks for updates? Can you put a local copy of your >app in a mode where it checks often and see what happens? GC support in Sparkle is pretty new, and I remember seeing so

Re: garbage collection is ON NSCFDictionary crash

2009-02-03 Thread Sean McBride
On 2/3/09 7:48 AM, Bill Bumgarner said: > Exception Codes: KERN_INVALID_ADDRESS at 0xa1b1c1d8 > >That seems like a rather suspicious address. a1b1c1d8? Fishy. I saw an a1b1c1d1+ crash the other day (also a GC app), and thought I remembered that number from the Debugging Magic tech

Re: garbage collection is ON NSCFDictionary crash

2009-02-03 Thread Bill Bumgarner
(Cc'ing the list w/the OP's permission) On Feb 3, 2009, at 8:25 AM, Jesse Grosjean wrote: If you can reproduce the crash at all, run your app with MallocStackLoggingNoCompact set and then use malloc_history to find out who allocated the object. However Does the crash always include:

Re: Read lines from very large text file

2009-02-03 Thread Michael Ash
On Tue, Feb 3, 2009 at 11:13 AM, Joar Wingfors wrote: > > On Feb 2, 2009, at 9:55 PM, Michael Ash wrote: > >> It hasn't been addressed because it's not really relevant to the >> question at hand. Yes, you definitely need to either know or be able >> to discover the text encoding of the text files

Re: Read lines from very large text file

2009-02-03 Thread Andy Lee
On Feb 3, 2009, at 11:43 AM, Scott Ribe wrote: Would a correct implementation not depend on being able to iterate over characters, and not simply using a fixed step size? Not in order to find line endings. Now, actually doing anything with the line of text is a different issue, dependent on

Re: Read lines from very large text file

2009-02-03 Thread Scott Ribe
> Would a correct implementation not depend on being able to iterate > over characters, and not simply using a fixed step size? Not in order to find line endings. Now, actually doing anything with the line of text is a different issue, dependent on the encoding. -- Scott Ribe scott_r...@killerby

Re: Read lines from very large text file

2009-02-03 Thread Joar Wingfors
On Feb 2, 2009, at 9:55 PM, Michael Ash wrote: It hasn't been addressed because it's not really relevant to the question at hand. Yes, you definitely need to either know or be able to discover the text encoding of the text files you're dealing with. But aside from both being about text files, t

Re: Objective-C 2.0 @property(readonly) memory leak question

2009-02-03 Thread Bill Bumgarner
On Feb 3, 2009, at 7:53 AM, Adam Venturella wrote: Ah! so if I never call upon the accessor, it would never make a copy. Since it made a copy(once called), it's retained, and thus would be my responsibility for releasing it. Thanks for the link! Didn't even think copy was the issue. Sure. T

Re: Objective-C 2.0 @property(readonly) memory leak question

2009-02-03 Thread Adam Venturella
Ah! so if I never call upon the accessor, it would never make a copy. Since it made a copy(once called), it's retained, and thus would be my responsibility for releasing it. Thanks for the link! Didn't even think copy was the issue. On Tue, Feb 3, 2009 at 7:42 AM, Bill Bumgarner wrote: > On Fe

Re: garbage collection is ON NSCFDictionary crash

2009-02-03 Thread Bill Bumgarner
On Feb 3, 2009, at 7:16 AM, Jesse Grosjean wrote: The crash is always in Thread1 and NSCFDictionary is always printed near the top of the crash report. Does anyone have any idea of what could be causing this. Or can you suggest some steps that I could take to track it down? If you can reproduce

Re: Stroking a CATextLayer

2009-02-03 Thread Benjamin Dobson
On 3 Feb 2009, at 15:05:51, glenn andreas wrote: On Feb 3, 2009, at 8:50 AM, Benjamin Dobson wrote: Has anyone managed this, short of creating a separate layer for the stroke? The Google machine doesn't seem to provide any answers. Since CATextLayer uses an attributed string, why can't yo

Re: Objective-C 2.0 @property(readonly) memory leak question

2009-02-03 Thread Bill Bumgarner
On Feb 3, 2009, at 7:39 AM, Adam Venturella wrote: return [collection copy]; http://developer.apple.com/documentation/Cocoa/Reference/Foundation/Classes/NSObject_Class/Reference/Reference.html#/ /apple_ref/occ/instm/NSObject/copy ___ Cocoa-dev

Objective-C 2.0 @property(readonly) memory leak question

2009-02-03 Thread Adam Venturella
I know that this is the wrong way to do it, but could someone explain why this causes a memory leak? The crux of it is, you set an ivar to be Mutable, and you set the property to return an immutable object. You override the default accessor method to return a copy of the mutable ivar. @interface

garbage collection is ON NSCFDictionary crash

2009-02-03 Thread Jesse Grosjean
I'm looking for some advice on tracking down a crash that I keep getting reports about, but that I haven't reproduced locally. I have a garbage collected app, and I keep getting (maybe 2 or 3 a day) the following crash report: ---

Re: Stroking a CATextLayer

2009-02-03 Thread glenn andreas
On Feb 3, 2009, at 8:50 AM, Benjamin Dobson wrote: Has anyone managed this, short of creating a separate layer for the stroke? The Google machine doesn't seem to provide any answers. Since CATextLayer uses an attributed string, why can't you just set the attributes to have the text stroked

Re: Read lines from very large text file

2009-02-03 Thread glenn andreas
On Feb 2, 2009, at 11:25 PM, Seth Willits wrote: On Feb 2, 2009, at 7:50 PM, Joar Wingfors wrote: Before opening the file, either determine, guess, or be told what the encoding is. With that encoding, convert your delimiter string into raw bytes, then do byte-for-byte comparison on the fil

Stroking a CATextLayer

2009-02-03 Thread Benjamin Dobson
Has anyone managed this, short of creating a separate layer for the stroke? The Google machine doesn't seem to provide any answers. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

How to handle NetworkConnections apart from PPP

2009-02-03 Thread pan xuan
Hi,Apple System Configuration Framework references includes a SCNetworkConnection API that is restricted to handle PPP connection. Is there any other API that the developer can use to deal with other type of network connectivities such as Wireless LAN and LAN. I basically need to connect, disc

Re: Read lines from very large text file

2009-02-03 Thread Alexander Spohr
Am 03.02.2009 um 10:46 schrieb Jacob Rhoden: On 3/2/09 4:55 PM, Michael Ash wrote: It is not uncommon that I might have to deal with server logs that go into the gigabytes. Most logs (apache, squid, etc...) are all ascii encoded. The line ending is irrelevant, see a \n or a \r and we kno

Re: Read lines from very large text file

2009-02-03 Thread Jacob Rhoden
On 3/2/09 4:55 PM, Michael Ash wrote: Everything I've seen in this thread so far skimps on one important detail: If you're just looking at the raw data, how do you know how to interpret it? It hasn't been addressed because it's not really relevant to the question at hand. Yes, you definit

Re: [OT] Localizing an App or Plugin

2009-02-03 Thread Alan Shouls
Hi Glen, Yes I understand that. I will have to modify/resize the UI once I have the strings in there. But the people who we are sending the strings out to be localized do not know anything about IB, so I don't want to confuse them or have them screw anything up. Once the strings have been