Code Sign verification on Leopard

2009-10-13 Thread Jakub Bednar
Hi list, I have read CodeSigningGuide and CodeSigningRef from Apple. In the CodeSigningRef every method has a note, that it is available in 10.6 and later. So I just want to make sure. On Leopard, there is now Cocoa or other API for verifying code signatures. So if I want to verify e.g. t

Re: TIFFRepresentation, different TIFF format under Snow Leopard

2009-10-13 Thread Paul M
On 13/10/2009, at 7:07 PM, Sandy McGuffog wrote: Well, that I think depends on your definition of "crappy software". :) I think if it fails to function according to published guidelines, makes wrong assumptions instead of performing a very simple test, and consequenty fails to read a vali

Re: TIFFRepresentation, different TIFF format under Snow Leopard

2009-10-13 Thread Peter C
I never realize it occurred under 10.5, guess I have to dug the TIFF reader code and adapt reading 3 or 4 bytes depending on tag info. On 13 Oct, 2009, at 2:07 PM, Sandy McGuffog wrote: Well, that I think depends on your definition of "crappy software". :) The practical issue for me is that

Getting AAC tag information

2009-10-13 Thread Sven
Hello, I've found documentation on getting ID3 tag data from MP3s via QuickTime, but I'm having a hard time finding information on retrieving this data from AAC files. I'd expect there to be some form of support to handle reading and writing of tagging data for both AAC and MP3 files. ./Sve

Should VM shrink to original when releasing huge memory

2009-10-13 Thread Nick Rogers
Hi, I'm using Snow Leopard and Xcode 3.2. When my program runs the VM grows from 50MB to around 550MB. So when I release the memory, should VM shrink to the original 50MB, in this case it isn't so? Thanks, Nick ___ Cocoa-dev mailing list (Cocoa-de

Implementing Back and Forth Control.

2009-10-13 Thread Philip Juel Borges
Hi! In my app I have my MainMenu.xib that contains the toolbar and a custom view that swaps in my other 3 xib (view) files (taken from ViewControlller from Appple's site). Now each of the other 3 views has a webview and a segmented control that allows me to go back and forth and adding th

NSFetchedResultController bug?

2009-10-13 Thread Alex Reynolds
I am reworking Apple's CoreDataBooks sample iPhone application to add five relationship-less instances of an NSManagedObject class ("Book"). When I add these to a secondary managed object context (MOC) and then merge these changes with the primary MOC, the application crashes with the follo

Re: More Core Data Questions

2009-10-13 Thread Jon Hull
The project is a game engine which has 2 graphs. The first is a tree of events that represent the story. Each "event" in the story is an immutable object, and there is a special event which represents a series of events to run in order and one which represents branches that the player has to

Subclassing a view class from an external framework

2009-10-13 Thread Mark Gallegly
I have an NSView subclass defined in a framework called FrameworkView. The FrameworkView class has a property like so: @property (nonatomic, retain) IBOutlet NSView* someView; This framework has the necessary code in it to work as an Interface Builder plugin, and everything seems to work fine in

Re: NSZombieEnabled giving rise to new bug

2009-10-13 Thread Wyatt Webb
On Oct 12, 2009, at 9:01 AM, Bill Bumgarner wrote: On Oct 12, 2009, at 8:50 AM, Nick Rogers wrote: 2009-10-12 20:28:53.651 My Program[33987:6263] *** -[CFArray count]: message sent to deallocated instance 0x1149a9310 [Switching to process 33987] [Switching to process 33987] sharedlibrary ap

Language based scanning

2009-10-13 Thread Nz Gmail
Hi, Is there is a way to figure out the occurance of Arabic chars so the label's alignment would be set accordingly (right to left)? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: Core Data with OpenGL

2009-10-13 Thread Dado Colussi
On Mon, Oct 12, 2009 at 11:30 PM, Richard Somers wrote: > So you are saying that I should abandon this and put the draw method > somewhere else like in a controller. Perhaps you could fill the picture in a > little more for me. So far I have yet to find any sample code that is a > document based

Re: Language based scanning

2009-10-13 Thread Ricky Sharp
You probably do not want to approach things this way. Arabic is bidirectional and you may have situations where you have a mixture of languages. What you should look at instead is to just localize your app to Arabic. In the Arabic version of your nibs, make the necessary adjustments. Se

Re: Bindings Driving Me CRAZY. :'(

2009-10-13 Thread Gustavo Adolfo Pizano
Keary. Tahnks a lot for the info, I will spend more time them trying to solve this bindings problems,,, I see my problem is not just bindings, but some Obj-c related stuff, like references outlets between classes, I did something similar a while back (puting IBOutlets for other controllers ), and

Re: Code Sign verification on Leopard

2009-10-13 Thread jonat...@mugginsoft.com
On 13 Oct 2009, at 08:34, Jakub Bednar wrote: Hi list, I have read CodeSigningGuide and CodeSigningRef from Apple. In the CodeSigningRef every method has a note, that it is available in 10.6 and later. So I just want to make sure. On Leopard, there is now Cocoa or other API for verifying

Re: Subclassing a view class from an external framework

2009-10-13 Thread Jeff Johnson
Hi Mark. I had the same problem with NSWindow subclasses. Although Interface Builder 3 is supposed to automatically sync with header files in your project, it seems to have trouble with headers in frameworks. What I did was select "Read Class Files..." in the "File" menu of Interface Buil

register a help book

2009-10-13 Thread Wesley Smith
I'm trying to add a help book to my app. I've been following the instructions on http://developer.apple.com/mac/library/documentation/Carbon/Conceptual/ProvidingUserAssitAppleHelp/user_help_intro/user_assistance_intro.html#//apple_ref/doc/uid/TP3903-CH204-CHDIDJFE . I'm finding conflicting (a

Safari problem

2009-10-13 Thread fawad shafi
Hello. i am developing an application in which i need that System permanently disables/hides the status bars at the top and bottom of safari for the duration of session. They do not reappear at any point. I tried my best to do that but no success. Kindly help me. Thanks in advance. Regards, Fa

Re: Core Data with OpenGL

2009-10-13 Thread Erik Buck
For a variety of reasons, I use Core Data with OpenGL all of the time.  One of my presentations this weekend at "Voices That Matter: iPhone Developers Conference" uses a Core Data application with two different Views as an example of the MVC design pattern.  One View presents information about t

Re: register a help book

2009-10-13 Thread Jerry Krinock
On 2009 Oct 13, at 06:45, Wesley Smith wrote: thanks for any pointers, * You didn't mention adding this "magic tag": to the of your root html file. * Watch Matt Neuberg's screencast: http://www.apeth.com/writersua/implementAppleHelp.mov (I never have, but Matt is the Apple He

Re: Safari problem

2009-10-13 Thread I. Savant
On Oct 13, 2009, at 9:54 AM, fawad shafi wrote: i am developing an application in which i need that System permanently disables/hides the status bars at the top and bottom of safari for the duration of session. They do not reappear at any point. ' If you're really trying to show/hide the s

Re: Core Data with OpenGL

2009-10-13 Thread I. Savant
On Oct 13, 2009, at 9:58 AM, Erik Buck wrote: I think that the Core Data model and any generated classes should be left untouched because you may want to regenerate the classes later. I use Categories to add View specific drawing methods to the objects that represent Core Data entities.

Preserving camelCase when prefixing a method name?

2009-10-13 Thread Graham Cox
Hi all, I have a situation where I need to build a new selector name from an existing one, by prepending a new part to the selector. e.g. if I have an object with a property 'fooBar', I want to generate the selector 'setSomeSpecialPrefixFooBar' The problem I've run into is preserving the

Re: Should VM shrink to original when releasing huge memory

2009-10-13 Thread Clark Cox
On Tue, Oct 13, 2009 at 2:14 AM, Nick Rogers wrote: > Hi, > I'm using Snow Leopard and Xcode 3.2. > When my program runs the VM grows from 50MB to around 550MB. > So when I release the memory, should VM shrink to the original 50MB, in this > case it isn't so? No, in most cases, it won't shrink. M

Re: Screensaver won't run on 10.6 even after porting to 64-bit

2009-10-13 Thread Ben Haller
On 12-Oct-09, at 8:14 PM, Charles Srstka wrote: On Oct 11, 2009, at 9:46 PM, Ben Haller wrote: Most of the bugs I had to fix were related to either using "long" instead of "int", or needing a -finalize method. You should actually probably be using NSInteger instead of either of those thes

Re: Preserving camelCase when prefixing a method name?

2009-10-13 Thread I. Savant
On Oct 13, 2009, at 10:24 AM, Graham Cox wrote: I think just making the first character uppercase would be sufficient, but I'm not sure how to do that reliably with the unichar data type, so that's my first question. Why not replace the first character with an upper-case version instead

Re: Preserving camelCase when prefixing a method name?

2009-10-13 Thread Jim Correia
On Oct 13, 2009, at 10:24 AM, Graham Cox wrote: I think just making the first character uppercase would be sufficient, but I'm not sure how to do that reliably with the unichar data type, so that's my first question. Well you don't have to consider all of unicode, just those characters wh

Composition to keep rendering on window close

2009-10-13 Thread Bryan Matteson
I'm using a standard QCView to play back a Quartz Composition. I still want the composition (which contains audio) to continue rendering when the window is hidden from view, but I'm not sure how without setting up a custom renderer and all that. Is it possible? I should also mention that it i

Re: TIFFRepresentation, different TIFF format under Snow Leopard

2009-10-13 Thread Ken Ferry
On Mon, Oct 12, 2009 at 11:48 AM, Sander Stoks wrote: > I have a related question. The various image file formats have their own > options and settings (compression levels, color space, interlacing, etc.); > is there a generic way to access these from within my application? > > For those who sti

Re: Getting AAC tag information

2009-10-13 Thread Jens Alfke
On Oct 13, 2009, at 2:12 AM, Sven wrote: I've found documentation on getting ID3 tag data from MP3s via QuickTime, but I'm having a hard time finding information on retrieving this data from AAC files. You can get at AAC tags via QuickTime's movie-metadata API — QTCopyMovieMetaData etc.

Re: Implementing Back and Forth Control.

2009-10-13 Thread Jens Alfke
On Oct 13, 2009, at 2:53 AM, Philip Juel Borges wrote: But it would be better to have just one segmented control in the toolbar that can go back and forth in any of the views that is swapped in. You can either (1) Set the segmented control's target property to point to the active WebVie

Re: TIFFRepresentation, different TIFF format under Snow Leopard

2009-10-13 Thread Ken Ferry
On Tue, Oct 13, 2009 at 12:39 AM, Paul M wrote: > Note especially this quote: > "Adobe supports TIFF issues that directly relate to Adobe products. If a > TIFF file is incompatible with an Adobe product ... our goal is to isolate > and understand the problem so that it may be corrected in future

Re: Code Sign verification on Leopard

2009-10-13 Thread Jens Alfke
This code sample seems to be designed to verify the binary that it's compiled into. That's sort of useless for security purposes, like yelling downstairs "are you a burglar?" If your own code's already been modified, it's easy enough for the hacker to disable the code that does the checking

Re: Language based scanning

2009-10-13 Thread John Joyce
Language based scanning To: "cocoa-dev@lists.apple.com" Message-ID: <21331617-f39c-4f3b-8f4b-795be101a...@gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Hi, Is there is a way to figure out the occurance of Arabic chars so the label's alignment woul

Re: TIFFRepresentation, different TIFF format under Snow Leopard

2009-10-13 Thread Sandy McGuffog
Ken, Just for clarity here, my problem, although not the original poster's, is not around internal representation - I'm happy with with whatever comes along in that regard. My problem is that if you want to write out a Core Image rep as TIFF, there is no obvious way to specify that you wa

Re: Should VM shrink to original when releasing huge memory

2009-10-13 Thread Jens Alfke
On Oct 13, 2009, at 2:14 AM, Nick Rogers wrote: When my program runs the VM grows from 50MB to around 550MB. So when I release the memory, should VM shrink to the original 50MB, in this case it isn't so? Virtual size is not usually a useful value for telling you "how much memory am I usin

Re: Language based scanning

2009-10-13 Thread Jens Alfke
On Oct 13, 2009, at 8:35 AM, John Joyce wrote: Part of the localization process in Cocoa is to create your localized nib/xib files. This includes adjusting interface elements and layout accordingly so that it makes sense for different languages/cultures. Even some ready-made interface elemen

Disabling clicking on links in webview

2009-10-13 Thread Arun
Hi All, I have an application where i use webview to display links to websites. I need to know is there any way in which we can disable the clicking on the links in the webview or is it possible to disable actions on complete webview? Thanks Arun KA ___

Re: Code Sign verification on Leopard

2009-10-13 Thread jonat...@mugginsoft.com
On 13 Oct 2009, at 16:41, Jens Alfke wrote: That's sort of useless for security purposes, like yelling downstairs "are you a burglar?" But it's not useless in the sense that it provides feedback that the code IS signed. The code merely allows me to detect if I have screwed up my build se

Re: Getting AAC tag information

2009-10-13 Thread Sven
On Tue, 13 Oct 2009, Jens Alfke wrote: On Oct 13, 2009, at 2:12 AM, Sven wrote: I've found documentation on getting ID3 tag data from MP3s via QuickTime, but I'm having a hard time finding information on retrieving this data from AAC files. You can get at AAC tags via QuickTime's movie-met

Re: Screensaver won't run on 10.6 even after porting to 64-bit

2009-10-13 Thread David Duncan
On Oct 13, 2009, at 7:44 AM, Ben Haller wrote: Yes, but NSInteger is 10.5 or later; I'm keeping 10.4 compatibility for now. Anyhow, those uses were all in my own internal logic, which can stay using 32-bit ints. NSInteger is just a typedef defined in the 10.5+ SDKs. It doesn't actually

Adding 'Help' to your App.

2009-10-13 Thread Joshua Garnham
Hi, Just wondering if there is some documentation on how to add 'help' to your app. Cheers. ___ 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

Re: Adding 'Help' to your App.

2009-10-13 Thread I. Savant
On Oct 13, 2009, at 12:37 PM, Joshua Garnham wrote: Just wondering if there is some documentation on how to add 'help' to your app. You're just wondering? Seriously? How about SEARCHING, then? -- I.S. ___ Cocoa-dev mailing list (Cocoa-dev@l

Re: Custom bitmap representation

2009-10-13 Thread Ken Ferry
On Mon, Oct 12, 2009 at 4:30 PM, Kelvin Chung wrote: > I have this "nonstandard" image format which I want to convert into a more > "standard" image format (say, PNG). I'm having difficulty on how to use > NSImageRep to do so. This "nonstandard" format can be converted into a > bitmap, so I tho

Re: Adding 'Help' to your App.

2009-10-13 Thread Eric Gorr
On Oct 13, 2009, at 12:37 PM, Joshua Garnham wrote: Just wondering if there is some documentation on how to add 'help' to your app. I would suggest starting with: http://developer.apple.com/mac/library/documentation/Carbon/Conceptual/ProvidingUserAssitAppleHelp/user_help_intro/user_assistanc

Subclassing a view class from an external framework

2009-10-13 Thread Mark Gallegly
I have an NSView subclass defined in a framework called FrameworkView. The FrameworkView class has a property like so: @property (nonatomic, retain) IBOutlet NSView* someView; This framework has the necessary code in it to work as an Interface Builder plugin, and everything seems to work fine in

Re: Subclassing a view class from an external framework

2009-10-13 Thread Bryan Matteson
The 'someView' outlet of 'MyFrameworkViewSubclass' is connected to 'Custom View' but 'someView' is no longer defined on MyFrameworkViewSubclass. I have encountered this situation before while working with KTUIKit and a Window Controller subclass. I used the workaround detailed in the fol

Returning to app after phone call

2009-10-13 Thread Anthony Smith
Is it possible, if my app initiates a phone call, that after the call the app will be relaunched? I've read the Application Programming Guide so I understand interruptions and URLs. However, I was a little confused on this aspect. Thanks any input. smime.p7s Description: S/MIME cryptographi

Re: Adding 'Help' to your App.

2009-10-13 Thread Joshua Garnham
Thanks, I'll take a look at that. From: Eric Gorr To: Joshua Garnham ; Mailing List Cocoa Sent: Tuesday, 13 October, 2009 17:44:17 Subject: Re: Adding 'Help' to your App. On Oct 13, 2009, at 12:37 PM, Joshua Garnham wrote: > Just wondering if there is some

Re: Adding 'Help' to your App.

2009-10-13 Thread Joshua Garnham
Some good links in that email, thanks! From: M. Moore To: Eric Gorr Cc: Joshua Garnham ; Mailing List Cocoa Sent: Tuesday, 13 October, 2009 17:55:43 Subject: Re: Adding 'Help' to your App. You might be interested in another thread going on in this same mail

viewWillDisappear not being called

2009-10-13 Thread Anthony Smith
When switching my views I'm noticing that my view controllers viewWillDisappear method is not being called. When switching the view I call this explicitly so I'm kind of confused. Here's my view switching code: - (void)switchView:(UIViewController *)newViewController { [newViewContr

Re: Bindings Driving Me CRAZY. :'(

2009-10-13 Thread Gustavo Pizano
SuccesS :D:D:D Ok I have success, but I stepped away from what you told me,,, in a way. What I did was: In the AwakeFromNib method of the parent Controller, (the one that holds the UserListController and the InvoiceEditionController). -(void)awakeFromNib{ if(_userListControll

[MEET] Chicago CocoaHeads / CAWUG Tuesday October 13th

2009-10-13 Thread Bob Frank
Hi All, Sorry for not sending out a reminder email. Our next meeting is tonight. I hope you can make it and it was on your calendar. The Chicago CocoaHeads / Chicago Cocoa and WebObjects User Group is holding our next meeting Tuesday, October 13th, at 7:00 PM at the Apple Store on Michig

Re: Getting AAC tag information

2009-10-13 Thread Jens Alfke
On Oct 13, 2009, at 9:30 AM, Sven wrote: Thanks... I don't want to encode any audio files, I merely want to be able to get and set tag data. For MP3s I can use id3lib no problems, but that doesn't help me with AAC files. I guess if there's no way to edit tags via the Apple libraries (if I

Re: Code Sign verification on Leopard

2009-10-13 Thread Jens Alfke
On Oct 13, 2009, at 9:25 AM, jonat...@mugginsoft.com wrote: But it's not useless in the sense that it provides feedback that the code IS signed. The code merely allows me to detect if I have screwed up my build settings and managed to break the code signing. Sure, it's useful for that. Bu

Re: Disabling clicking on links in webview

2009-10-13 Thread Jens Alfke
On Oct 13, 2009, at 8:58 AM, Arun wrote: I have an application where i use webview to display links to websites. I need to know is there any way in which we can disable the clicking on the links in the webview or is it possible to disable actions on complete webview? Look at the WebView del

Re: How to iterate over all objects stored with NSCoder

2009-10-13 Thread Jens Alfke
On Oct 12, 2009, at 9:40 PM, Michael Robinson wrote: As I lost the source code, I would like to know if there is a way to dump all keys/values from NSCoder so I can use it to help me with my arduous rewrite. There is not any API for this. Parsing an archive is pretty difficult unless you

arrayWithContentsOfFile

2009-10-13 Thread DKJ
I'm using this code to read an array from a plist: NSArray *data = [NSArray arrayWithContentsOfFile:[NSHomeDirectory() stringByAppendingPathComponent:@"/Documents/file.plist"]]; The docs say this method returns nil when the file doesn't exist (precisely: "Returns nil if the file can’t be op

Re: arrayWithContentsOfFile

2009-10-13 Thread I. Savant
On Oct 13, 2009, at 2:43 PM, DKJ wrote: I'm using this code to read an array from a plist: NSArray *data = [NSArray arrayWithContentsOfFile:[NSHomeDirectory() stringByAppendingPathComponent:@"/Documents/file.plist"]]; The docs say this method returns nil when the file doesn't exist (preci

Re: Appropriate dealloc and finalize actions

2009-10-13 Thread Chris Hanson
On Oct 12, 2009, at 8:25 AM, Jens Alfke wrote: > On Oct 12, 2009, at 4:26 AM, Karolis Ramanauskas wrote: > >> As you can see each box has one or more little "inputs" and "outputs" in >> fact these inputs and outputs are instances of one class (KROMPort). When I >> drag a connection from output to

Re: arrayWithContentsOfFile

2009-10-13 Thread Jens Alfke
On Oct 13, 2009, at 11:49 AM, I. Savant wrote: Nope. The docs are correct and I'm betting the file you specified in fact *doesn't* exist. The docs say it returns nil if the file doesn't exist, and he's getting an empty array. That was his question. "/Documents/file.plist" is probably n

Validate NSToolbarPrintItem

2009-10-13 Thread Knut Lorenzen
Dear List, how does one validate a NSToolbarPrintItem that was added in IB 3.2? The delegate's - (BOOL)validateToolbarItem:(NSToolbarItem *)theItem doesn't even get called. The Toolbar Item Attributes in IB's Inspector are all grayed out. Connecting to my Custom View sending a print: mes

Re: Returning to app after phone call

2009-10-13 Thread Anthony Smith
Any ideas? On Oct 13, 2009, at 1:11 PM, Anthony Smith wrote: Is it possible, if my app initiates a phone call, that after the call the app will be relaunched? I've read the Application Programming Guide so I understand interruptions and URLs. However, I was a little confused on this aspect

Re: arrayWithContentsOfFile

2009-10-13 Thread I. Savant
On Oct 13, 2009, at 2:54 PM, Jens Alfke wrote: The docs say it returns nil if the file doesn't exist, and he's getting an empty array. That was his question. ... You must have misread his code — he's using NSHomeDirectory() as a prefix. My apologies, you're absolutely right. I read that

Re: arrayWithContentsOfFile

2009-10-13 Thread DKJ
On 2009-10-13, at 12:01 , I. Savant wrote: On Oct 13, 2009, at 2:54 PM, Jens Alfke wrote: A PLIST can have an array root or a dictionary root. Are you sure your PLIST has an array root? I would still expect nil (ie, it can't create an array from a dictionary-rooted PLIST), but it's worth

Re: arrayWithContentsOfFile

2009-10-13 Thread I. Savant
On Oct 13, 2009, at 3:08 PM, DKJ wrote: I looked in the directory itself before running the code, and the plist files weren't there at all. Let me see if I understand what you're saying: You are expecting there to be *no* PLIST files (and so, you expect to get nil) but are getting an

Re: Returning to app after phone call

2009-10-13 Thread Alex Kac
It depends on the user. There is no way for you to do it programmatically. If the user hits "end call" then most of the time yes. But if the user hits home or what not, then no. But again, you can't "make" it happen. On Oct 13, 2009, at 2:01 PM, Anthony Smith wrote: Any ideas? On Oct 13,

Re: More Core Data Questions

2009-10-13 Thread Ben Trumbull
On Oct 13, 2009, at 3:17 AM, Jon Hull wrote: You don't need proxies or NSProxy for this. You can just use a delegate. Off the cuff, I might consider implementing a protocol on your immutable objects for methods like "currentLocation" and "currentPlayer" which vector through a semi-global

Re: arrayWithContentsOfFile

2009-10-13 Thread DKJ
On 2009-10-13, at 12:12 , I. Savant wrote: Let me see if I understand what you're saying: You are expecting there to be *no* PLIST files (and so, you expect to get nil) but are getting an empty array? Bingo. ___ Cocoa-dev mailing list (Cocoa-de

Re: arrayWithContentsOfFile

2009-10-13 Thread I. Savant
On Oct 13, 2009, at 3:23 PM, DKJ wrote: On 2009-10-13, at 12:12 , I. Savant wrote: Let me see if I understand what you're saying: You are expecting there to be *no* PLIST files (and so, you expect to get nil) but are getting an empty array? Bingo. Again, can you post your relevant c

NSString Class Instance Variables

2009-10-13 Thread Richard Somers
This might be a dumb question but just out of curiosity I was looking at NSString.h. The class appears to have no instance variables. /* NSString.h ... */ @interface NSString : NSObject - (NSUInteger)length; - (unichar)characterAtIndex:(NSUInteger)index; @end The same is

Re: NSString Class Instance Variables

2009-10-13 Thread Stephen J. Butler
On Tue, Oct 13, 2009 at 2:40 PM, Richard Somers wrote: > The same is true for NSArray, NSSet, and other foundation classes. If the > class has no instance variables, what does it do for storage?

Re: NSString Class Instance Variables

2009-10-13 Thread David Duncan
On Oct 13, 2009, at 12:40 PM, Richard Somers wrote: This might be a dumb question but just out of curiosity I was looking at NSString.h. The class appears to have no instance variables. NSString is just an interface to a cluster of classes that implement the actual functionality, ditto f

Re: arrayWithContentsOfFile

2009-10-13 Thread DKJ
On 2009-10-13, at 12:35 , I. Savant wrote: Again, can you post your relevant code? NSArray *data; data = [NSArray arrayWithContentsOfFile:[NSHomeDirectory() stringByAppendingPathComponent:@"/Documents/file.plist"]]; if( data == nil ) do this; --

Re: arrayWithContentsOfFile

2009-10-13 Thread DKJ
Hmm... I ran a similar code snippet in another project, and nil is returned, as the docs say. So the file must be created somewhere else. I'll find out where. I'm glad the docs aren't wrong. dkj ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com

Property List Format vs NSKeyedArchiver Format

2009-10-13 Thread Bridger Maxwell
Hey, For a cross-platform game, I need to make a game file format that would be readable and writeable on a few different platforms. The game is simply a serialized object graph. I am looking at the XML format used by NSKeyedArchiver, and perhaps implementing it in the other languages. Alternativel

Re: arrayWithContentsOfFile

2009-10-13 Thread James Walker
DKJ wrote: NSArray *data; data = [NSArray arrayWithContentsOfFile:[NSHomeDirectory() stringByAppendingPathComponent:@"/Documents/file.plist"]]; I would have used @"Documents/file.plist" as the parameter there. Your way, I wonder if you'd end up with a double slash, but maybe it's smarter

Re: arrayWithContentsOfFile

2009-10-13 Thread I. Savant
On Oct 13, 2009, at 3:52 PM, DKJ wrote: NSArray *data; data = [NSArray arrayWithContentsOfFile:[NSHomeDirectory() stringByAppendingPathComponent:@"/Documents/file.plist"]]; if( data == nil ) do this; There's no f

Object Alloc Instrument and releasing question

2009-10-13 Thread Nick Rogers
Hi, I'm running Xcode 3.2 on Snow Leopard. There is an object of type HDIR which can contains a mutable array of children objects of type HDIR, so a tree is formed. I can go back using the Back button and release this HDIR type root object. And then again form a new tree. When a tree is forme

Re: Property List Format vs NSKeyedArchiver Format

2009-10-13 Thread Tony Parker
Hi Bridger, On Oct 13, 2009, at 1:08 PM, Bridger Maxwell wrote: Hey, For a cross-platform game, I need to make a game file format that would be readable and writeable on a few different platforms. The game is simply a serialized object graph. I am looking at the XML format used by NSKeyedA

Re: Code Sign verification on Leopard

2009-10-13 Thread jonat...@mugginsoft.com
On 13 Oct 2009, at 19:28, Jens Alfke wrote: On Oct 13, 2009, at 9:25 AM, jonat...@mugginsoft.com wrote: But it's not useless in the sense that it provides feedback that the code IS signed. The code merely allows me to detect if I have screwed up my build settings and managed to break the

Re: arrayWithContentsOfFile

2009-10-13 Thread DKJ
On 2009-10-13, at 13:27 , I. Savant wrote: So that's exactly how the code appears? Yes. But of course I have to look in the directory before the code runs. So the file must be created somewhere before processing gets to this point. I created a test application with just this code in it,

Re: Property List Format vs NSKeyedArchiver Format

2009-10-13 Thread Jens Alfke
On Oct 13, 2009, at 1:08 PM, Bridger Maxwell wrote: I would like to read more on the NSKeyedArchiver XML format, but can't find documentation on it. Is it open? No. It's undocumented and could change in the future; writing code for another platform that parses it would probably be a bad i

Re: Returning to app after phone call

2009-10-13 Thread David Duncan
On Oct 13, 2009, at 2:58 PM, Kyle Sluder wrote: If you expect any turnaround at all, pay for a DTS incident. Just for clarity, DTS promises a 3-business day turn around. We may respond sooner, but 3-business days is what we advertise :).

Re: Returning to app after phone call

2009-10-13 Thread Kyle Sluder
On Tue, Oct 13, 2009 at 12:01 PM, Anthony Smith wrote: > Any ideas? Seriously? You leave two hours in between sending a message and expecting a response? If you expect any turnaround at all, pay for a DTS incident. Don't spam the highly-trafficked list full of volunteers. --Kyle Sluder __

Re: Property List Format vs NSKeyedArchiver Format

2009-10-13 Thread Ken Ferry
On Tue, Oct 13, 2009 at 2:40 PM, Jens Alfke wrote: > > On Oct 13, 2009, at 1:08 PM, Bridger Maxwell wrote: > > I would like to read more on the NSKeyedArchiver XML format, but can't >> find >> documentation on it. Is it open? >> > > No. It's undocumented and could change in the future; writing c

Re: [UTI] Anyway to retrieve the UTI of a file without having to use a FSRef?

2009-10-13 Thread Iceberg-Dev
On Oct 13, 2009, at 12:42 AM, Jim Correia wrote: On Mon, Oct 12, 2009 at 6:36 PM, Iceberg-Dev wrote: From what I've found in the documentation, the UTI type of a file can be retrieved using the LaunchServices APIs. This requires to provide a FSRef. Wouldn't there be an API I didn't see

Re: [UTI] Anyway to retrieve the UTI of a file without having to use a FSRef?

2009-10-13 Thread Kyle Sluder
On Tue, Oct 13, 2009 at 3:30 PM, Iceberg-Dev wrote: > Unfortunately, I need a solution that is daemon-safe. If you need a daemon-safe solution, why are you so averse to using an FSRef? --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.co

Re: [UTI] Anyway to retrieve the UTI of a file without having to use a FSRef?

2009-10-13 Thread Ken Ferry
On Mon, Oct 12, 2009 at 3:45 PM, Jens Alfke wrote: > > On Oct 12, 2009, at 3:36 PM, Iceberg-Dev wrote: > > Wouldn't there be an API I didn't see in Foundation that lets you obtain >> the type without having to convert, at least, a NSURL to a FSRef? >> > > In 10.5 there were a bunch of mismatches

Re: NSFetchedResultController bug?

2009-10-13 Thread Steve Steinitz
Hello, On 13/10/09, cocoa-dev-requ...@lists.apple.com wrote: When I add these to a secondary managed object context (MOC) and then merge these changes with the primary MOC, the application crashes with the following error: 2009-10-13 02:59:12.787 MyApp[43049:207] *** Terminating app due t

Re: How to iterate over all objects stored with NSCoder

2009-10-13 Thread Graham Cox
On 14/10/2009, at 5:32 AM, Jens Alfke wrote: As I lost the source code, I would like to know if there is a way to dump all keys/values from NSCoder so I can use it to help me with my arduous rewrite. There is not any API for this. Parsing an archive is pretty difficult unless you have th

Re: NSString Class Instance Variables

2009-10-13 Thread Graham Cox
On 14/10/2009, at 6:40 AM, Richard Somers wrote: The same is true for NSArray, NSSet, and other foundation classes. If the class has no instance variables, what does it do for storage? Apart from the class cluster answer you already got, the public headers don't need to include any instan

Re: arrayWithContentsOfFile

2009-10-13 Thread Graham Cox
On 14/10/2009, at 6:52 AM, DKJ wrote: if( data == nil ) do this; There's no file.plist in the directory. But "do this" doesn't get done. However, "do this" does get done when I have this: if( [data count] == 0 )

Re: NSString Class Instance Variables

2009-10-13 Thread Jens Alfke
On Oct 13, 2009, at 4:29 PM, Graham Cox wrote: Apart from the class cluster answer you already got, the public headers don't need to include any instance variables even if they exist in reality. Only if the class cannot be subclassed. In the 32-bit runtime, instance variable offsets are d

Re: NSString Class Instance Variables

2009-10-13 Thread Greg Parker
On Oct 13, 2009, at 4:29 PM, Graham Cox wrote: On 14/10/2009, at 6:40 AM, Richard Somers wrote: The same is true for NSArray, NSSet, and other foundation classes. If the class has no instance variables, what does it do for storage? Apart from the class cluster answer you already got, the publ

Re: Property List Format vs NSKeyedArchiver Format

2009-10-13 Thread Graham Cox
On 14/10/2009, at 8:40 AM, Jens Alfke wrote: I would like to read more on the NSKeyedArchiver XML format, but can't find documentation on it. Is it open? No. It's undocumented and could change in the future; While strictly true, it's not possible that Apple could really ever stop sup

Re: NSString Class Instance Variables

2009-10-13 Thread Graham Cox
On 14/10/2009, at 10:38 AM, Greg Parker wrote: On 32-bit Mac, if you strip ivars from the header then other code cannot subclass that class. The compiler will put subclass and superclass ivars in the same place, leading to exciting data corruption bugs. All system frameworks are honest a

Re: Property List Format vs NSKeyedArchiver Format

2009-10-13 Thread Jens Alfke
On Oct 13, 2009, at 4:43 PM, Graham Cox wrote: While strictly true, it's not possible that Apple could really ever stop supporting it, due to the many millions of files out there that use it and will have to remain readable in their existing form. True, but it can change in ways that are b

Re: Getting AAC tag information

2009-10-13 Thread Graham Cox
On 14/10/2009, at 5:25 AM, Jens Alfke wrote: The problem is that changing tags, in general, requires re-writing the entire file. And even in iTunes, if you edit tags while the track is playing, will often cause a noticeable pause in the output while it does this, so it doesn't seem as i

Re: Property List Format vs NSKeyedArchiver Format

2009-10-13 Thread Graham Cox
On 14/10/2009, at 10:51 AM, Jens Alfke wrote: While strictly true, it's not possible that Apple could really ever stop supporting it, due to the many millions of files out there that use it and will have to remain readable in their existing form. True, but it can change in ways that are ba

  1   2   >