Anyone used kCFStreamSSLCertificates and kCFStreamPropertySSLPeerCertificates

2009-03-02 Thread SridharRao M
Hi all,Any one worked on kCFStreamSSLCertificates and kCFStreamPropertySSLPeerCertificates in cf streams. Can you please guide how can i proceed to client side validating using SSL certificate. Sridhar. ___ Cocoa-dev mailing list

Re: Animate the way a HUD panel appears.

2009-03-02 Thread Gustavo Adolfo Pizano
Hello Fabian. I just setup the HUD panel in IB, and inside the panel my CustomView which has some layers . Teh HUD panel its controler by a ShipControllerPanel class, which has the init method that initialize the panel from the NSBundle, and load it to memory just once. when you tell me

Re: Animate the way a HUD panel appears.

2009-03-02 Thread Gustavo Adolfo Pizano
Douglas hello. will this apply also to the HUD Panel?, I was thinking something similar but couldn't see a way to achieve it. inside the panel as I said, I have my custom view, but I dunno how to play with it to make it appear in a fancy way. I will look at the example once i get home. thanks

Re: Animate the way a HUD panel appears.

2009-03-02 Thread douglas welton
Gustavo, Yes - a HUD Panel is just a subclass of NSWindow. regards, douglas On Mar 2, 2009, at 5:24 AM, Gustavo Adolfo Pizano wrote: Douglas hello. will this apply also to the HUD Panel?, I was thinking something similar but couldn't see a way to achieve it. inside the panel as I said,

Re: Advice on building a complex user custom control

2009-03-02 Thread Graham Cox
On 02/03/2009, at 12:22 PM, Oliver Charles wrote: I've started learning Objective-C and Cocoa, and while I'm fairly experienced with programming, GUI programming is quite new to me. I'm working on a small game engine, and as such, I want to create a level editor for the game. I love the old

Re: Animate the way a HUD panel appears.

2009-03-02 Thread Gustavo Adolfo Pizano
Douglas hi, so I should overwrite some methods that allow me to manipulate the HUD panel in the PanelShioController class?, which is a subclas of NSWindowController? if yes, then I will check out which methods apply for my requirments, Thanks Gus On Mon, Mar 2, 2009 at 12:16 PM, douglas

[MEET] CocoaHeads Sydney This Thursday

2009-03-02 Thread Mark Aufflick
Hi all, It's time for CocoaHeads Sydney Australia again, and this month we have our very own Nathan Day, hot from a state hopping speaking tour to Brisbane CocoaHeads, telling us about his broad range of Cocoa frameworks. Presumably he presents his slides with [[NDSlides alloc] init]; or

Re: Advice on building a complex user custom control

2009-03-02 Thread Paul Bruneau
On Mar 1, 2009, at 8:22 PM, Oliver Charles wrote: At the moment, I have a main MapView control, which creates vertices in an NSArrayController. I have 2 ways of viewing these vertices - one is to handle rendering them directly in the MapView, and another approach creates a new VertexView for

Re: Animate the way a HUD panel appears.

2009-03-02 Thread Gustavo Adolfo Pizano
Ok i think I messed up a little. the PanelShipController class is a sub class of NSWindowController, which is the one in charge of loading the Panel. As fas as I have read thas the best way to do it. Now, if i understand good, I have to create my custom class which inherits from NSPanel, and

Terminating a thread...

2009-03-02 Thread John Cebasek
Hi All: I've got an NSThread that copies some data from one database to another. While the copy is occurring, there's a sheet that is updated with the progress of the copy. On that sheet there's also a stop button, so that if the user wants to stop the copy, he can. I seem to be having

Re: Terminating a thread...

2009-03-02 Thread Mike Abdullah
Have you read the docs on -[NSThread cancel] ? Calling -cancel does NOT terminate the thread since this easily cause disastrous memory problems later down the line etc. Instead, your - convertDatabaseToSQLite3: method should periodically call [[NSThread currentThread] isCancelled] and

Re: The fieldEditor and a focus ring

2009-03-02 Thread Eric Gorr
On Feb 27, 2009, at 6:29 PM, Graham Cox wrote: On 28/02/2009, at 7:07 AM, Eric Gorr wrote: If I check the value of focusRingType for the fieldEditor which is currently handling the text input, I get a value back of NSFocusRingTypeDefault. But, even if I set the value to

Re: Animate the way a HUD panel appears.

2009-03-02 Thread douglas welton
Gustavo, The best thing would probably be for you to read the documentation on NSWindowController and NSWindow, then decide - based on your code's functionality - where to make the best additions to your code to accomplish your goal. regards, douglas On Mar 2, 2009, at 9:31 AM,

Re: Live resizing NSTableView causes ghosting/nastiness in custom drawn NSTextFieldCell

2009-03-02 Thread Corbin Dunn
On Feb 27, 2009, at 4:02 PM, Andrew Yeaton wrote: I have a custom subclass of an NSTextFieldCell that draws a right- aligned badge (like Mail.app's unread count). The column that uses the custom cell autoresizes with the width of the NSTableView (which resizes with the window). The

Can't use in/contains operator with collection FIRST

2009-03-02 Thread Daniel Child
I have a basic parent entity with two child entities. I set up a nib file using the default entity interface for all three. I can add and remove data fine, but for some reason, the search fields that are automatically provided do not work, and in fact cause the following error message:

Changing NSTableView cell immediately before editing

2009-03-02 Thread K . Darcy Otto
I want to change the contents of an NSTableView cell immediately prior to editing, but cannot figure out how to do this. That is, I want to return YES to tableView:aTableView:shouldEditTableColumn:row:, to permit editing to begin, but before editing actually begins, modify the colour and

Re: enabling Edit menu items in a modal window?

2009-03-02 Thread Steve Christensen
On Mar 1, 2009, at 11:38 PM, Paul Sanders wrote: I added a text field to my modal window, and when it is the first responder the cut, copy, paste and select all menu items are enabled. Just for grins I added a second NSTableView to the window and rebuilt. When that table has focus, the edit

How to create a simple pop-up-menu

2009-03-02 Thread Ulai Beekam
Hi, How do I create a Safari-style pop-up menu? I'm talking about the pop-up menu (be sure to correct me if this thing is not even called a pop-up menu) that appears when you click the button to show off-screen tabs. Just open Safari (use version 3) and keep creating new tabs until the

Re: enabling Edit menu items in a modal window?

2009-03-02 Thread Paul Sanders
nobody even calls validateMenuItem: for my modal window... Well, you're one step closer to getting to the bottom of it perhaps, knowing that. Is the target of the menu item in question set to the first responder in IB? Forgive me if you know all this, but at the code level, this corresponds

Re: enabling Edit menu items in a modal window?

2009-03-02 Thread mmalc Crawford
On Mar 2, 2009, at 8:28 AM, Steve Christensen wrote: http://developer.apple.com/DOCUMENTATION/Cocoa/Reference/ApplicationKit/Protocols/NSMenuValidation_Protocol/Reference/Reference.html I tried doing that, both in my NSTableView subclass and, just to see if it would make a difference, in my

Re: Does CGImageSourceCreateThumbnailAtIndex max out at 5000 pixels?

2009-03-02 Thread David Duncan
On Mar 1, 2009, at 11:46 PM, Florian Soenens wrote: Actually we are just looking for the fastest way of creating a 72 dpi image (thumbnail) of our original 400 dpi image. It seemed that CGImageSourceCreateThumbnailAtIndex was the fastest way to do this. The thumbnail image isn't

Re: Optimizing, uiview caching, and clearing that cached view.

2009-03-02 Thread David Duncan
On Feb 28, 2009, at 8:16 AM, James Cicenia wrote: How do I skip over my populating code in ViewWillAppear to increase the response time of my app? I'm guessing your doing what should be one-time creation of content for that view. If so, you should do this inside of -viewDidLoad rather

Re: NSTableView and CA backed views

2009-03-02 Thread David Duncan
On Feb 28, 2009, at 8:49 AM, Erwan Ripoll wrote: It seems that any NSTableView in a NSVIew that has setWantsLayer:YES will flicker whenever the parent view is resized. There is no work around for this issue short of disabling layer- backing. The basic problem is that a CATiledLayer throws

Re: How to create a simple pop-up-menu

2009-03-02 Thread Benjamin Dobson
On 2 Mar 2009, at 16:42:00, Ulai Beekam wrote: Hi, How do I create a Safari-style pop-up menu? I'm talking about the pop-up menu (be sure to correct me if this thing is not even called a pop-up menu) that appears when you click the button to show off-screen tabs. Just open Safari

Re: Advice on building a complex user custom control

2009-03-02 Thread douglas welton
Oliver, Have you considered using CALayers and Core Animation to model the elements of your MapView Control? That's the direction I would go in, if this were my project. regards, douglas On Mar 1, 2009, at 8:22 PM, Oliver Charles wrote: Hi, I've started learning Objective-C and

Re: enabling Edit menu items in a modal window?

2009-03-02 Thread Steve Christensen
On Mar 2, 2009, at 8:47 AM, Paul Sanders wrote: nobody even calls validateMenuItem: for my modal window... Well, you're one step closer to getting to the bottom of it perhaps, knowing that. Is the target of the menu item in question set to the first responder in IB? Forgive me if you

Re: enabling Edit menu items in a modal window?

2009-03-02 Thread Steve Christensen
On Mar 2, 2009, at 9:10 AM, mmalc Crawford wrote: On Mar 2, 2009, at 8:28 AM, Steve Christensen wrote: http://developer.apple.com/DOCUMENTATION/Cocoa/Reference/ ApplicationKit/Protocols/NSMenuValidation_Protocol/Reference/ Reference.html I tried doing that, both in my NSTableView subclass

Re: enabling Edit menu items in a modal window?

2009-03-02 Thread Paul Sanders
I think I mentioned in my original message that I'm writing an application plugin (for FCP, actually), so I wasn't involved in setting up the application's nib. Oh yes, so you did. So, I have now done what I should have done before and stuck a table view in my modal dialog to test it. And

Re: enabling Edit menu items in a modal window?

2009-03-02 Thread Paul Sanders
Yes, this is on 10.4. I suppose it could be that bug, except that NSTextFields work just fine... My test were done on 10.5 ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list.

Re: Animate the way a HUD panel appears.

2009-03-02 Thread Sean McBride
On 3/1/09 7:05 PM, Gustavo Pizano said: Hello, I have an application that has a HUD panel, now, when I click the button to show the panel the HUD panel simply appears, I was wondering if there is a way to make it appear in a diferent way, kinda the way Aperture, or iPhoto shows such panels, that

Custom file types and extensions

2009-03-02 Thread jeffs87
Hi, My program uses a custom file type and I was wondering how to make sure my extension is unique. On Apple's Data Type Registration page they only register creator codes. They no longer register file types. What about file extensions? http://developer.apple.com/datatype/ Thanks Jeff

Re: Custom file types and extensions

2009-03-02 Thread Nick Zitzmann
On Mar 2, 2009, at 12:38 PM, jeff...@aol.com wrote: My program uses a custom file type and I was wondering how to make sure my extension is unique. On Apple's Data Type Registration page they only register creator codes. They no longer register file types. What about file extensions?

Re: Custom file types and extensions

2009-03-02 Thread James Walker
Nick Zitzmann wrote: On Mar 2, 2009, at 12:38 PM, jeff...@aol.com wrote: My program uses a custom file type and I was wondering how to make sure my extension is unique. On Apple's Data Type Registration page they only register creator codes. They no longer register file types. What about

Re: Custom file types and extensions

2009-03-02 Thread jeffs87
Hi As for type codes, you can use them however you wish; there are a few standards, like 'TEXT' and 'PDF ' you should probably avoid with a proprietary file type, but you probably knew that. Only the creator code really matters. Thanks for the info, I will go with file type and creator

Odd crash

2009-03-02 Thread Reza Farhad
I am getting an odd crash report from some of my end users at startup. The report attached below is generated by using a custom uncaught exceptions handlers. I can not make any sense of this as all the calls are within the Apple frameworks. Ay suggestions. Thanks Reza System: Mac OS X

Do I need to relase @string ??

2009-03-02 Thread James Cicenia
hello Here is my code: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath: (NSIndexPath *)indexPath { WhatsFreshAppDelegate *appDelegate = (WhatsFreshAppDelegate *) [[UIApplication sharedApplication] delegate]; if(indexPath.row == 0){ [appDelegate

Re: Do I need to relase @string ??

2009-03-02 Thread Dave DeLong
For good practice, yes. In this isolated example, I don't believe so (because I'm pretty sure NSConstantString overrides -retainCount so that it can't ever be released). You may also want to consider simplifying your code to: ... NSString * miles[8] = {@200, @500, @1000, @1500,

Re: Custom file types and extensions

2009-03-02 Thread Nick Zitzmann
On Mar 2, 2009, at 1:41 PM, jeff...@aol.com wrote: Thanks for the info, I will go with file type and creator instead of an extension. You might want to do both. Using only a type creator will keep Mac purists happy - until they try sending an attachment over E-Mail, in which case the

Re: Do I need to relase @string ??

2009-03-02 Thread Kyle Sluder
On Mon, Mar 2, 2009 at 3:58 PM, James Cicenia ja...@jimijon.com wrote: DO I HAVE TO WORRY ABOUT RELEASING currentMiles somewhere? YOU MIGHT WANT TO WORRY about releasing your Shift key. ;-) Just follow the memory management guides. You didn't use +alloc, +new, or -copy to make the object, so

Re: Custom file types and extensions

2009-03-02 Thread Kyle Sluder
On Mon, Mar 2, 2009 at 4:05 PM, Nick Zitzmann n...@chronosnet.com wrote: You might want to do both. Using only a type creator will keep Mac purists happy - until they try sending an attachment over E-Mail, in which case the codes might be lost unless both clients support flattening and

Re: Do I need to relase @string ??

2009-03-02 Thread Dave DeLong
My understanding was that he was referring to the setter in his AppDelegate class. Since the only thing (apparently) getting passed into the setter was an NSConstantString, it would seem that he wouldn't need to worry about releasing that property. (Assuming the setter was retaining it)

Re: Custom file types and extensions

2009-03-02 Thread Nick Zitzmann
On Mar 2, 2009, at 2:21 PM, Kyle Sluder wrote: Besides, what if someone tosses the file on a FAT32 flash drive? Actually, the Finder (and probably cp, NSFileManager, etc. as well) will automatically flatten resource forks and Finder metadata in this case. The flattened data is stored in

Re: enabling Edit menu items in a modal window?

2009-03-02 Thread Steve Christensen
On Mar 2, 2009, at 10:47 AM, Paul Sanders wrote: I think I mentioned in my original message that I'm writing an application plugin (for FCP, actually), so I wasn't involved in setting up the application's nib. Oh yes, so you did. So, I have now done what I should have done before and stuck

Locally Saving Data Acquired by my Cocoa App?

2009-03-02 Thread Darren Minifie
Hello everyone I am building an application that requires me to collect data from services like Last.fm and Pandora etc. I am grabbing xml data about each song, as well as small thumbnails for the album art. I want to store this data locally so I don't need to make another batch of requests

Query Active Directory

2009-03-02 Thread GARRISON, TRAVIS J.
Would anyone know how to query an attribute from Active Directory? I would like to query the scriptPath attribute and return 1 if it has a value in it and 0 if it is empty? How would I do this in cocoa? I would like to only use the /Search path since we use ADmitMac currently. Travis Garrison

Re: Locally Saving Data Acquired by my Cocoa App?

2009-03-02 Thread I. Savant
On the other hand, I may not want to have every piece of album art loaded into memory at once. It may be better to save album art in a folder somwhere. Have you considered Core Data with a SQLite store type and merely referencing cached images stored in a cache folder somewhere? What

Re: The fieldEditor and a focus ring

2009-03-02 Thread Kirk Swenson
On Mar 2, 2009, at 7:42 AM, cocoa-dev-requ...@lists.apple.com wrote: On Feb 27, 2009, at 6:29 PM, Graham Cox wrote: On 28/02/2009, at 7:07 AM, Eric Gorr wrote: Is this focus ring something I need to draw myself or is there some way to get the fieldEditor to draw it? If you are using the

Re: Custom file types and extensions

2009-03-02 Thread Kyle Sluder
On Mon, Mar 2, 2009 at 4:24 PM, Nick Zitzmann n...@chronosnet.com wrote: Actually, the Finder (and probably cp, NSFileManager, etc. as well) will automatically flatten resource forks and Finder metadata in this case. The flattened data is stored in a file with the same name, prefixed with a

Re: NSTreeController, NSOutlineView and Core Data (again)

2009-03-02 Thread Quincey Morris
On Mar 2, 2009, at 11:41, Peter Ferrett wrote: I have Core Data objects bound to an NSOutlineView via a NSTreeController. It is a schema that is common to other threads on this group: one entity for the group, one entity for the leaf, and a with the children relationship containing the

Re: The fieldEditor and a focus ring

2009-03-02 Thread Graham Cox
On 03/03/2009, at 2:30 AM, Eric Gorr wrote: [self lockFocus]; [NSGraphicsContext saveGraphicsState]; NSRect focusRingBounds = [self bounds]; NSSetFocusRingStyle( NSFocusRingOnly ); NSBezierPath *path = [NSBezierPath bezierPathWithRect:focusRingBounds]; [path setClip]; [path fill];

Re: do i need to create autorelease pool?

2009-03-02 Thread Michael Ash
On Sun, Mar 1, 2009 at 9:58 PM, Memo Akten m...@memo.tv wrote: Michael, so does this mean that CFRunLoopTimer and NSTimer don't behave the same way? I always assumed 'toll-free bridged' meant that you could use them interchangeably, the NSxxx were just Cocoa wrappers for the CF stuff, but it

Re: NSTreeController, NSOutlineView and Core Data (again)

2009-03-02 Thread Peter Ferrett
Quincey, Thank you very much. I think you have hit the nail on the head there. Because I wanted to do some alterations (ordering, etc) to the children objects I actually bound the tree controller to a custom children method. When I bind the tree controller to the original children

Re: Odd crash

2009-03-02 Thread Michael Ash
On Mon, Mar 2, 2009 at 3:52 PM, Reza Farhad r...@qu-s.eu wrote: I am getting an odd crash report from some of my end users at startup. The report attached below is generated by using a custom uncaught exceptions handlers. I can not make any sense of this as all the calls are within the Apple

Re: Do I need to relase @string ??

2009-03-02 Thread Bryan Henry
Assuming that the setter is copying the value passed in (which it should be, considering setCurrentMiles: should accept a single NSString*), yes James, you should release currentMiles in your - (void)dealloc implementation for that class. The release won't affect the constant strings, but

Re: enabling Edit menu items in a modal window?

2009-03-02 Thread Paul Sanders
What happens if you're not actually editing a cell but the table has focus? I would expect that Select All would be enable so that you could select all rows, right? That's the behavior I'm interested in... Oh, I see. No, it doesn't do that. ___

Re: Odd crash

2009-03-02 Thread Paul Sanders
I am getting an odd crash report from some of my end users at startup. The report attached below is generated by using a custom uncaught exceptions handlers. I can not make any sense of this as all the calls are within the Apple frameworks. Ay suggestions. Thanks As the man said,

Re: NSFileManager reads from invalid memory

2009-03-02 Thread Chris Parker
Hi Tim, On 27 Feb 2009, at 10:57 AM, Tim Murison wrote: I noticed an issue in my code related to NSFileManager. When running my program with gmalloc, I got a seg fault. I traced the cause back to NSFileManager and wrote a simple reproducible program to illustrate the issue. Can one of the

Re: Do I need to relase @string ??

2009-03-02 Thread Joel Norvell
While it's important to keep Objective C's memory management model and rules in mind, I've found the LLVM/Clang Static Analyzer to be the perfect tool for double-checking my code. It's a lot less neurotic than trying to remember everything, all the time, especially when you're starting out.

float from NSData

2009-03-02 Thread Jay Kickliter
I have a case where I'm sending IEEE 754 32-bit floats to my Cocoa program over a wireless serial link, they are being sent MSB first. I'm using AMSerialPort to handle my data, and after a little parsing, I'm left with a 4 byte NSData, which has the 32-bit float split into 4 bytes. I

Re: float from NSData

2009-03-02 Thread Graham Cox
On 03/03/2009, at 12:32 PM, Jay Kickliter wrote: I have a case where I'm sending IEEE 754 32-bit floats to my Cocoa program over a wireless serial link, they are being sent MSB first. I'm using AMSerialPort to handle my data, and after a little parsing, I'm left with a 4 byte NSData,

I can't find the leak on this simple table view.

2009-03-02 Thread James Cicenia
Hello - I have a table view that I popup. However it is giving me leaks and something about NSIndexPath is shown in leaks in instruments. It is leaking upon showing the table view. I have a mainview -- PopupView -- PopupView2 the PopupView2 is the one giving me the leak upon display.

Re: I can't find the leak on this simple table view.

2009-03-02 Thread mmalc Crawford
On Mar 2, 2009, at 5:52 PM, James Cicenia wrote: So how do I track this kind of leak down? To be somewhat facetious on this occasion: http://www.google.com/search?client=safarirls=en-usq=nsindexpath+leakie=UTF-8oe=UTF-8 It's a known issue. mmalc

Exel and PowerPoint

2009-03-02 Thread Тимофей Даньшин
Hello. Are there any abstractions in Cocoa to open and handle Exel and PowerPoint files? Thank you. Timofey. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Re: I can't find the leak on this simple table view.

2009-03-02 Thread James Cicenia
No ,,, facetious works for me thanks.. just trying hard to make my little app more like a vault and less like a bank... not to be facetious. ;-) On Mar 2, 2009, at 8:10 PM, mmalc Crawford wrote: On Mar 2, 2009, at 5:52 PM, James Cicenia wrote: So how do I track this kind of

Re: float from NSData

2009-03-02 Thread Ben Lachman
Just to note. Depending on how many of these you're sending over the link, I think having an NSData for every 4 byte float is a bit overkill and could probably end up being a bottle neck. I'm not saying you should optimize early, but there might be a more straight forward way of creating

Getting NSDate from EXIF of a image

2009-03-02 Thread Jushin
I need to get time and date from EXIF of a image. Following is the code snippet I used: NSDictionary *metadata = (NSDictionary *) CGImageSourceCopyPropertiesAtIndex(source, 0, NULL); NSMutableDictionary *muMetadata = [[metadata mutableCopy] autorelease]; [metadata release];

Latent objects remain associated in NSTokenField after they are deleted/removed?

2009-03-02 Thread Honey Pot
Hello, I have three token fields, each of which has a special case within - (NSArray *)tokenField:(NSTokenField *)tokenField completionsForSubstring:(NSString *)substring indexOfToken:(int)tokenIndex indexOfSelectedItem:(int *)selectedIndex for when one of the fields

Re: Logical and - second operator evaluated?

2009-03-02 Thread Sam Schapmann
Have you checked that you have initialized the timer pointer to nil? Like C, in Objective-C local variables (as opposed to instance variables) are allocated on the stack frame and have unspecified initial values. About the only thing you can count on for sure is that the initial value

Re: Exel and PowerPoint (??????? ???????)

2009-03-02 Thread David Hoerl
Hello. Are there any abstractions in Cocoa to open and handle Exel and PowerPoint files? Thank you. Timofey. Well, there are ways to read and write excel files - look on sourceforge for libxls and xlslib (the first library can read an .xls file, and xlslib can write one). I contribute to

Re: Odd crash

2009-03-02 Thread Kyle Sluder
On Mon, Mar 2, 2009 at 7:02 PM, Paul Sanders p.sand...@dsl.pipex.com wrote: As the man said, over-releaseing something, perhaps. 0x is on the call stack... maybe it's defensive scribbling, not an overrelease. --Kyle Sluder ___ Cocoa-dev

Path for writeToFile

2009-03-02 Thread Pierce Freeman
Hi everyone: I am running into a bit of a problem when trying to use writeToFile with NSDictionary. My problem is that I want to be able to get a file on the Desktop but I can't find a way to do that without knowing the directory structure of the user. If anyone could point me in the right

Re: Getting NSDate from EXIF of a image

2009-03-02 Thread Jushin
I found that in order to convert NSString format of date to NSDate, we need timezone. But, EXIF doesn't support timezone unless GPS tags exist. So, here is what I have come up with: NSDictionary *metadata = (NSDictionary *) CGImageSourceCopyPropertiesAtIndex(source, 0, NULL); NSMutableDictionary

Re: Do I need to relase @string ??

2009-03-02 Thread Michael Ash
On Mon, Mar 2, 2009 at 7:50 PM, Joel Norvell framewor...@yahoo.com wrote: While it's important to keep Objective C's memory management model and rules in mind, I've found the LLVM/Clang Static Analyzer to be the perfect tool for double-checking my code.  It's a lot less neurotic than trying

Re: Path for writeToFile

2009-03-02 Thread Graham Cox
On 03/03/2009, at 3:36 PM, Pierce Freeman wrote: Hi everyone: I am running into a bit of a problem when trying to use writeToFile with NSDictionary. My problem is that I want to be able to get a file on the Desktop but I can't find a way to do that without knowing the directory

Re: Path for writeToFile

2009-03-02 Thread Michael Ash
On Mon, Mar 2, 2009 at 11:36 PM, Pierce Freeman piercefreema...@comcast.net wrote: Hi everyone: I am running into a bit of a problem when trying to use writeToFile with NSDictionary.  My problem is that I want to be able to get a file on the Desktop but I can't find a way to do that without

Re: Exel and PowerPoint

2009-03-02 Thread Andrew Farmer
On 02 Mar 09, at 18:16, Тимофей Даньшин wrote: Hello. Are there any abstractions in Cocoa to open and handle Exel and PowerPoint files? Thank you. No. You'll need to either write this code yourself or find a library that'll do it for you.___

EXC_BAD_ACCESS in _class_changeInfo

2009-03-02 Thread Dave DeLong
Hey everyone, I've just come across something that I'm totally lost on. I've got an app that I'm making that uses the Flying Meat database system (this may or may not be relevant; I have no idea), a couple static arrays[], and an EditMyTeamsViewController. When I call:

Code Signing for Dummies

2009-03-02 Thread Seth Willits
Alright, so I've read the docs on code signing, but it's a little too detailed in some areas and has no big picture. I have a typical bundled Cocoa app that uses a few frameworks. I want to use code signing so that each time I update the app, users don't get the keychain nag dialog.

Re: Odd crash

2009-03-02 Thread Paul Sanders
(Reza sent me the message below privately but I thought it might be useful to copy the reply to the list. Excuse me if you have heard it all before). So you would think this is happening in the Exception Handling code? No, I don't think it's happening on the exception handler. I think that

Re: Odd crash

2009-03-02 Thread Andrew Farmer
On 02 Mar 09, at 20:22, Kyle Sluder wrote: On Mon, Mar 2, 2009 at 7:02 PM, Paul Sanders p.sand...@dsl.pipex.com wrote: As the man said, over-releaseing something, perhaps. 0x is on the call stack... maybe it's defensive scribbling, not an overrelease. Given that it's between the

Re: Odd crash

2009-03-02 Thread Paul Sanders
Given that it's between the (presumably) crashing code and _sigtramp, my bet is that it's some sort of signal handler goop. Oh! I just took a copy of that code :). I'll look at it when I get a moment. ___ Cocoa-dev mailing list