Re: No more crash logs since 10.5.6 ?

2009-04-07 Thread Xavier Miller
OK, that was it : the setting was "Server" in place of "Basic" or "Developer". I changed it and got my crash logs again. I never changed that setting. Why the upgrade to 10.5.6 changed that? I found it really annoying (but no more related to that mailing list). Any way, thank you very myuch!

Invoke a method

2009-04-07 Thread developers mac
Hi there, I have to invoke a method on the backbutton action. (ie., I am in form B, on clicking back I am moving to form A). All I have to do is to invoke a method to set the tableview values. I tried using action: but failed. In form B, I am using : [self.navigationController popViewContr

Re: Invoke a method

2009-04-07 Thread Mark Ritchie
On 7-Apr-09, at 3:14 AM, developers mac wrote: What am I doing wrong? Kindly some one help me out please! I think that you might get better answers if you explained what you're trying to do. It's very difficult to understand what you're doing from your message. Perhaps if you explained at a

Re: PDFView in layer backed view appears white

2009-04-07 Thread Memo Akten
Thanks John, the second approach seems like it makes the most sense for my needs. cheers. On 6 Apr 2009, at 19:10, John Calhoun wrote: On Apr 6, 2009, at 6:31 AM, Memo Akten wrote: Hi, I would like to add a PDFView to another view. But if my root view is layer backed I see nothing (just wh

RE: Embedded Django ...

2009-04-07 Thread Mic Pringle
Hi, Could someone please explain (just a quick overview) how the authentication process works for the Django admin site ? Looking through the source I see methods for index and app_index, and login & display_login_form ... however I cannot see how, when I first boot up the server and navigate to

Re: Accessing remote database

2009-04-07 Thread Mahaboob
On 4/7/09 3:00 PM, "Ruslan Zasukhin" wrote: > On 4/7/09 12:25 PM, "Mahaboob" wrote: > >> I need to access a MS Access database which is located in a remote location >> and I only have access to it over internet. >> >> Is it possible to access MS Access database using Cocoa? >> How can I do i

Re: "Word Wrap" and "Character Wrap" in NSTextField

2009-04-07 Thread Jerry Krinock
This problem is solved by updating Developer Tools to Interface Builder 3.1.2 and re-setting the Layout and Line Breaks settings on the text field. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderat

Re: Field editor undo vs document dirty

2009-04-07 Thread Kyle Sluder
On Tue, Apr 7, 2009 at 2:52 AM, Quincey Morris wrote: > The first thing I don't understand is whether that's a bug. Although the > document isn't really changed (because the typing hasn't been committed > yet), but the presence of undoable typing perhaps ought to prevent the > document window from

SQLite3 and Unicode Strings - Problem

2009-04-07 Thread Тимофей Даньшин
Hello. In my application, I have the need to store strings with non-latin characters in a SQLite database. But when I insert them, they become corrupt. When i bind the string to the prepared statement, i do make sure it is in UTF-8: sqlite3_bind_text(sentence_insert_statement, 1, [string UTF

Re: Accessing remote database

2009-04-07 Thread Ruslan Zasukhin
On 4/7/09 12:25 PM, "Mahaboob" wrote: > I need to access a MS Access database which is located in a remote location > and I only have access to it over internet. > > Is it possible to access MS Access database using Cocoa? > How can I do it? Simpler question then how you can do that on win

Re: Embedded Django ...

2009-04-07 Thread Andrew Farmer
On 07 Apr 09, at 02:50, Mic Pringle wrote: Could someone please explain (just a quick overview) how the authentication process works for the Django admin site ? This doesn't appear to be related to Cocoa development. (The fact that you're using it in a Cocoa app is irrelevant, as you aren't

Accessing remote database

2009-04-07 Thread Mahaboob
I need to access a MS Access database which is located in a remote location and I only have access to it over internet. Is it possible to access MS Access database using Cocoa? How can I do it? Thanks in advance Mahaboob ___ Cocoa-dev mailing list (C

Re: Embedded Django ...

2009-04-07 Thread Mic Pringle
Sorry, wrong list. -Mic 2009/4/7 Andrew Farmer : > On 07 Apr 09, at 02:50, Mic Pringle wrote: >> >> Could someone please explain (just a quick overview) how the >> authentication process works for the Django admin site ? > > > > This doesn't appear to be related to Cocoa development. (The fact t

Re: Invoke a method

2009-04-07 Thread developers mac
I have two forms (.xib file). From form A, i used to navigate to form B. After selecting a value from form B, I will return back to form A. For that I used, [self.navigationController popViewControllerAnimated:YES]; to move back to form A. Then the problem occurred. When doing this, I am carrying

QTMovie and playing backwards

2009-04-07 Thread Jeffrey Goines
Hi. I'd like to make a small program which has two playback buttons,one for regular playback and one for backwards playback. How can this be achieved? Thanks. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Invoke a method

2009-04-07 Thread Alexander Spohr
Try viewWillAppear / viewDidAppear. atze Am 07.04.2009 um 13:06 schrieb developers mac: I have two forms (.xib file). From form A, i used to navigate to form B. After selecting a value from form B, I will return back to form A. For that I used, [self.navigationController popViewCon

Re: Invoke a method

2009-04-07 Thread Dave DeLong
Probably what you're doing is something like this: FormBController * b = [[FormBController alloc] init]; [[self navigationController] pushViewController:b animated:YES]; [b release]; What about making b an instance variable of the object, and then do: if (!b) { b = [[FormBController alloc] init

kern/locks.h

2009-04-07 Thread Barry Fawthrop
Greetings I'm working on a project for the iPhone original it was c++ based and has the following lines #include #include It comes back with No such file or directory Yet I have Library/Frameworks/Kernel.framework/Versions/A/Headers/kern/locks.h Library/Frameworks/Kernel.framework/Versions/

Auto Resize Views Issues

2009-04-07 Thread Rama Krishna
I created a view in Nib file containing several sub views/controls. I enabled auto resizing for these controls by configuring appropriate struts and springs in the Interface Builder's size inspector. This view is loaded and added to an NSBox on an as required basis. Everything works fine. When the

Re: Accessing remote database

2009-04-07 Thread Sherm Pendley
On Tue, Apr 7, 2009 at 5:25 AM, Mahaboob wrote: > I need to access a MS Access database which is located in a remote location > and I only have access to it over internet. > > Is it possible to access MS Access database using Cocoa? > How can I do it? Use ODBC. sherm-- -- Cocoa programming i

Re: Auto Resize Views Issues

2009-04-07 Thread Kyle Sluder
On Tue, Apr 7, 2009 at 9:56 AM, Rama Krishna wrote: > I get the animation all right. However all the sub view sizing and layout is > disturbed. Some views appear above other views and so on. This is going to happen for views that don't support sizes all the way down to (0, 0), and there might be

Re: Auto Resize Views Issues

2009-04-07 Thread I. Savant
On Tue, Apr 7, 2009 at 9:56 AM, Rama Krishna wrote: > I get the animation all right. However all the sub view sizing and layout is > disturbed. Some views appear above other views and so on. > > What is the proper way to animate a view from zero size to the desired size? I believe this is a kn

Re: kern/locks.h

2009-04-07 Thread Kyle Sluder
1) If you want to use a header inside a framework, you need to tell GCC to use that framework. This means either passing the -framework flag to GCC, or adding the framework to your Link Binary with Libraries build stage in Xcode. 2) This isn't Cocoa related. You should probably be asking this qu

Re: kern/locks.h

2009-04-07 Thread Michael Dautermann
>I'm working on a project for the iPhone > >original it was c++ based and has the following lines > >#include >#include > >It comes back with >No such file or directory > >Yet I have >Library/Frameworks/Kernel.framework/Versions/A/Headers/kern/locks.h >Library/Frameworks/Kernel.framework/Versio

Re: Field editor undo vs document dirty

2009-04-07 Thread Adam R. Maxwell
On Apr 6, 2009, at 11:52 PM, Quincey Morris wrote: I can't work out if this simple and I'm just missing it, or if this is hard ... In a NSDocument-based application, I have some text fields in the document window. Typing in one of these text fields (that is, typing characters but not pre

finder file size

2009-04-07 Thread Jo Phils
Hello, My apologies if this has been answered before but isn't there a simple way to get the file size as it shows under Size in Finder without using Carbon and without enumerating the directory? My understanding is NSFileSize will not do it? Thank you, Rick

Re: finder file size

2009-04-07 Thread I. Savant
On Tue, Apr 7, 2009 at 11:09 AM, Jo Phils wrote: > My apologies if this has been answered before but isn't there a simple way to > get the file size as it shows under Size in Finder without using Carbon and > without enumerating the directory? My understanding is NSFileSize will not > do it?

Re: No more crash logs since 10.5.6 ?

2009-04-07 Thread Shawn Erickson
On Tue, Apr 7, 2009 at 12:02 AM, Xavier Miller wrote: > OK, that was it : the setting was "Server" in place of "Basic" or > "Developer". I changed it and got my crash logs again. > > I never changed that setting. Why the upgrade to 10.5.6 changed that? I don't think 10.5.6 had anything that would

Re: QTMovie and playing backwards

2009-04-07 Thread douglas welton
Give the movie a negate playback rate. If you are using QTKit's QTMovie, check the documentation for QTMovieRateAttribute or QTMOviePreferredRateAttribute. On Apr 7, 2009, at 7:56 AM, Jeffrey Goines wrote: Hi. I'd like to make a small program which has two playback buttons,one for regula

Re: Does waitUntilExit really mean that?

2009-04-07 Thread Michael Ash
On Tue, Apr 7, 2009 at 12:29 AM, Ken Thomases wrote: > On Apr 6, 2009, at 11:02 PM, Michael Ash wrote: > >> If you do insist on running an inner runloop, then you'll need to do >> that *first*, before you use waitUntilExit, to avoid the potential >> deadlock. > > There is no potential deadlock.  w

Re: Does waitUntilExit really mean that?

2009-04-07 Thread Michael Domino
Ken, Thanks very much for the reply. I have two methods to handle the notifications for the error and output pipes (see below). Since we are supposed to be reading to EOF, do I really need to call readToEndOfFileInBackgroundAndNotify at the end of each call? To answer your question, after

Re: Does waitUntilExit really mean that?

2009-04-07 Thread Michael Ash
On Tue, Apr 7, 2009 at 12:53 AM, Adam R. Maxwell wrote: > > On Apr 6, 2009, at 9:02 PM, Michael Ash wrote: > >> On Mon, Apr 6, 2009 at 11:10 PM, Adam R. Maxwell wrote: >>> >>> On Apr 6, 2009, at 7:50 PM, Michael Ash wrote: First off, I wouldn't write code like this. You have no guarante

Invalid strings

2009-04-07 Thread Livio Isaia
I have a strange problem with my program: the debugger marks as "invalid" (not "nil") every NSString* object I have in a method, so that I cannot see its value. Why can this happen? Can anybody help me? Thanks in advance, livio. ___ Cocoa-dev mailing

Re: finder file size

2009-04-07 Thread Karl Moskowski
On 7-Apr-09, at 11:08 AM, Jo Phils wrote: My apologies if this has been answered before but isn't there a simple way to get the file size as it shows under Size in Finder without using Carbon and without enumerating the directory? My understanding is NSFileSize will not do it? I use so

Re: SQLite and Unicode

2009-04-07 Thread Keary Suska
On Apr 6, 2009, at 2:31 PM, Тимофей Даньшин wrote: When I insert non-latin strings into my SQLite3 database, they turn into some weird sets of characters (as I select those strings later in Terminal), and the fields, which contain those strings, become unusable by my application. I googl

Re: Invalid strings

2009-04-07 Thread Nick Zitzmann
On Apr 7, 2009, at 10:00 AM, Livio Isaia wrote: I have a strange problem with my program: the debugger marks as "invalid" (not "nil") every NSString* object I have in a method, so that I cannot see its value. Why can this happen? Can anybody help me? You probably turned off data formatte

Re: Invalid strings

2009-04-07 Thread Livio Isaia
Yes, data formatters where off... thank you. It was very simple but I thought there was a real problem. thank you again, regards, livio. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: finder file size

2009-04-07 Thread Michael Ash
On Tue, Apr 7, 2009 at 11:09 AM, Jo Phils wrote: > Hello, > > My apologies if this has been answered before but isn't there a simple way to > get the file size as it shows under Size in Finder without using Carbon and > without enumerating the directory?  My understanding is NSFileSize will not

Floating window on top of everything

2009-04-07 Thread Walker Argendeli
I am making a simple application that consists of a small HUD window that needs to float above another application. How do I make it so that A. it floats above everything, and B. when I switch to another application, it remains on top. Thanks, - Walker Argendeli __

Re: finder file size

2009-04-07 Thread Jean-Daniel Dupas
Le 7 avr. 09 à 18:32, Michael Ash a écrit : On Tue, Apr 7, 2009 at 11:09 AM, Jo Phils wrote: Hello, My apologies if this has been answered before but isn't there a simple way to get the file size as it shows under Size in Finder without using Carbon and without enumerating the directory?

Fwd: SQLite and Unicode

2009-04-07 Thread Тимофей Даньшин
On Apr 7, 2009, at 8:14 PM, Keary Suska wrote: Are you properly encoding your C strings with -cStringUsingEncoding:? Yes, I think so. At present, I am using the -UTF8String method, but I also tried the - cStringUsingEncoding: to no avail. Here is the line that binds the string to the prepare

Core data migration question

2009-04-07 Thread Jon C. Munson II
Namaste! I would like to be able to take advantage of the migration tool that comes with Core Data. One thing I cannot readily determine from the documents is whether one should begin with a "versioned" model. By "begin" I mean the model is versioned from the start as opposed to later in the app

Re: finder file size

2009-04-07 Thread Rosyna
If you are worried about blocking the UI and such, I'd highly recommend looking at FSGetCatalogInfoBulk(). You're doing a lot of path lookups in this code (to see if you have permission to access all components of path and such) that don't need to be done so often. On Apr 7, 2009, at 9:09 A

Re: Auto Resize Views Issues

2009-04-07 Thread Keary Suska
On Apr 7, 2009, at 8:22 AM, I. Savant wrote: On Tue, Apr 7, 2009 at 9:56 AM, Rama Krishna wrote: I get the animation all right. However all the sub view sizing and layout is disturbed. Some views appear above other views and so on. What is the proper way to animate a view from zero size

Re: Floating window on top of everything

2009-04-07 Thread Uli Kusterer
On 07.04.2009, at 18:37, Walker Argendeli wrote: I am making a simple application that consists of a small HUD window that needs to float above another application. How do I make it so that A. it floats above everything, and B. when I switch to another application, it remains on top. Se

Re: kern/locks.h

2009-04-07 Thread Barry Fawthrop
Michael Dautermann wrote: >> I'm working on a project for the iPhone >> >> original it was c++ based and has the following lines >> >> #include >> #include >> >> It comes back with >> No such file or directory >> >> Yet I have >> Library/Frameworks/Kernel.framework/Versions/A/Headers/kern/lock

Re: SQLite and Unicode

2009-04-07 Thread Keary Suska
On Apr 7, 2009, at 10:39 AM, Тимофей Даньшин wrote: On Apr 7, 2009, at 8:14 PM, Keary Suska wrote: Are you properly encoding your C strings with -cStringUsingEncoding:? Yes, I think so. At present, I am using the -UTF8String method, but I also tried the - cStringUsingEncoding: to no avail.

Re: kern/locks.h

2009-04-07 Thread Dave Camp
On Apr 7, 2009, at 10:08 AM, Barry Fawthrop wrote: Michael Dautermann wrote: Thanks Michael Can you suggest some learning resources on how to (a) learn more and (b) accomplish an iPhone "acceptable" locking mechanism for the iPhone. For ported code, the pthreads library might be what you

Keynote Scripting

2009-04-07 Thread Pierce Freeman
Hi everyone: While this may not be the correct place to ask this question, and I apologize for that, I could not find a list dedicated to Keynote - So I decided to post it here. Also, the people of this list have been so helpful in the past so I hope that you all can help me now. Anyway, for a bi

Re: SQLite and Unicode

2009-04-07 Thread Michael Ash
2009/4/7 Keary Suska : > > On Apr 7, 2009, at 10:39 AM, Тимофей Даньшин wrote: > >> >> On Apr 7, 2009, at 8:14 PM, Keary Suska wrote: >>> >>> Are you properly encoding your C strings with -cStringUsingEncoding:? >> >> Yes, I think so. >> At present, I am using the -UTF8String method, but I also tri

Check box to indicate more than 2 states

2009-04-07 Thread Arun
Hi All, I am using check box control in my application to show Enable/Disable status. Is it possible to use the same control to show more that 2 states. Like Enable/Disable/Modified. Any idea? Thanks Arun ___ Cocoa-dev mailing list (Cocoa-dev@lists.app

Re: Keynote Scripting

2009-04-07 Thread Greg Guerin
Pierce Freeman wrote: While this may not be the correct place to ask this question, and I apologize for that, I could not find a list dedicated to Keynote - So I decided to post it here. There's no list for Keynote, but there are lists for Scripting: http://lists.apple.com/mailman/listin

Re: Core data migration question

2009-04-07 Thread mmalc Crawford
On Apr 7, 2009, at 9:34 AM, Jon C. Munson II wrote: One thing I cannot readily determine from the documents is whether one should begin with a "versioned" model. By "begin" I mean the model is versioned from the start as opposed to later in the application's life cycle. So, my question is: is

Re: Keynote Scripting

2009-04-07 Thread Craig Williams
While this may not be the correct place to ask this question, and I apologize for that, I could not find a list dedicated to Keynote - So I decided to post it here. Also, the people of this list have been so helpful in the past so I hope that you all can help me now. Anyway, for a big presen

Re: SQLite and Unicode

2009-04-07 Thread Тимофей Даньшин
How do you define "string" (i.e. how is its value set)? There can be an issue with UTF8 constant strings. Have you called - canBeConvertedToEncoding: to make sure "string" is utf-8 compatible? To be on the safe side, i make a local copy of the method's input string. And the -canBeConvertedTo

Re: Check box to indicate more than 2 states

2009-04-07 Thread Randall Meadows
On Apr 7, 2009, at 11:43 AM, Arun wrote: Hi All, I am using check box control in my application to show Enable/Disable status. Is it possible to use the same control to show more that 2 states. Like Enable/Disable/Modified. Any idea? This would be the "mixed state" of NSButton. ___

Re: Check box to indicate more than 2 states

2009-04-07 Thread Mark Ritchie
On 7-Apr-09, at 1:43 PM, Arun wrote: Is it possible to use the same control to show more that 2 states. Like Enable/Disable/Modified. Sounds to me like radio buttons might better convey your intentions to the user? M. __ Mark Ritchie Cocoa and WebObjects Developer Diamond Lake Consulting I

(no subject)

2009-04-07 Thread Greg Guerin
Тимофей Даньшин wrote: [string2 release]; sqlite3_reset(sentence_insert_statement); I'm looking more closely at the code, and those statements seem mis- ordered to me. I would not release something if someone else (sqlite, in this case) might be holding onto a reference to a buffer that's

Re: Core data migration question

2009-04-07 Thread Timothy Larkin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I think that Jon is asking whether he should give a version number to his data model, and not whether he should create a second version of his data model. If this is in fact his question, then I think the answer is yes, because this will make it

Re: SQLite and Unicode

2009-04-07 Thread Keary Suska
On Apr 7, 2009, at 12:54 PM, Тимофей Даньшин wrote: I am deeply and sincerely ashamed of myself. The point is that i get that input string by splitting the string in my textView ([[myTextView textStorage] string]) into sentences. During that procedure i check every char if it is a sentence

Re: SQLite and Unicode

2009-04-07 Thread Greg Guerin
Oops: prior "(No subject)" post is in "SQLite and Unicode" thread. -- GG ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists

Re: Need localization-proof method of transporting dates.

2009-04-07 Thread Christopher Kane
Now that everybody else has had their say, I'll throw in my two bits: ;-) * as others have pointed out, never store the hash of an object or data computed from the hash, nor transmit the hash of an object outside a process, if your goal is to compare it in any way with anything else (for

Re: SQLite and Unicode

2009-04-07 Thread Тимофей Даньшин
I am deeply and sincerely ashamed of myself. The point is that i get that input string by splitting the string in my textView ([[myTextView textStorage] string]) into sentences. During that procedure i check every char if it is a sentence terminator (?! or linebreak). And i do that by using

Re: Check box to indicate more than 2 states

2009-04-07 Thread Alex Kac
I think the standard convention is Check = ON, no Check = OFF, line in the middle = MIXED which is good for when you have multiple selections. On Apr 7, 2009, at 1:01 PM, Chris Williams wrote: How about check for enable/disable, and change the font (bold, italic, something) to indicate modifi

Re: Check box to indicate more than 2 states

2009-04-07 Thread Chris Williams
How about check for enable/disable, and change the font (bold, italic, something) to indicate modified?? > From: Mark Ritchie > Date: Tue, 07 Apr 2009 13:51:00 -0400 > To: Arun > Cc: > Subject: Re: Check box to indicate more than 2 states > > On 7-Apr-09, at 1:43 PM, Arun wrote: >> Is it poss

Re: Core data migration question

2009-04-07 Thread Jon Munson II
I wasn't certain if, in order to utilize versioning later, that I would need to mark the current model in some way. The Apple dox didn't state one way or another, and I didn't wish to make an assumption and find out later that I missed some important step which would result in hours of hea

Re: Core data migration question

2009-04-07 Thread mmalc Crawford
On Apr 7, 2009, at 10:53 AM, Jon Munson II wrote: I wasn't certain if, in order to utilize versioning later, that I would need to mark the current model in some way. The Apple dox didn't state one way or another, and I didn't wish to make an assumption and find out later that I missed som

Re: SQLite and Unicode

2009-04-07 Thread Greg Guerin
Тимофей Даньшин wrote: To be on the safe side, i make a local copy of the method's input string. Maybe the lifetime of the local copy is less than what SQLite needs. I see in your code that you're releasing the copy, but is SQLite asynchronous and still needing the buffer to exist at that

Re: SQLite and Unicode

2009-04-07 Thread Michael Ash
2009/4/7 Тимофей Даньшин : > I am deeply and sincerely ashamed of myself. > The point is that i get that input string by splitting the string in my > textView ([[myTextView textStorage] string]) into sentences. During that > procedure i check every char if it is a sentence terminator (?! or > lineb

Re: SQLite and Unicode

2009-04-07 Thread Kirk Kerekes
To break your text into sentences, I suggest swiping componentsSeparatedByCharacterRunFromSet: from: -- and create a character set of your sentence-splitting characters to prime it with. If you need to preserve

Re: Core data migration question

2009-04-07 Thread mmalc Crawford
On Apr 7, 2009, at 12:28 PM, Timothy Larkin wrote: I think that Jon is asking whether he should give a version number to his data model, and not whether he should create a second version of his data model. If this is in fact his question, then I think the answer is yes, because this will m

Re: SQLite and Unicode

2009-04-07 Thread Rosyna
You could try using - (NSRange)rangeOfComposedCharacterSequenceAtIndex: (NSUInteger)index; and see if the range is >1. But right now, I'm watching the highly informative humorist Glenn Beck. Oh, >1 was to pass over surrogate pairs, so you don't pass over anything. But honestly, you should

Re: SQLite and Unicode

2009-04-07 Thread Greg Guerin
Rosyna wrote: Oh, >1 was to pass over surrogate pairs, so you don't pass over anything. rangeOfComposedCharacterSequenceAtIndex: is for more than surrogate pairs. It also applies to base characters that have combining accents following them. For example, the Latin letter 'e' followed

NSTableView - Ctrl-click editing?

2009-04-07 Thread Luca C.
Hi there, is there a clean way to let the user edit a cell of a table view using a ctrl click event? Do i have to subclass my table view or there is another trick to do this? Thanks, --Luca C. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: NSTableView - Ctrl-click editing?

2009-04-07 Thread Sean McBride
On 4/8/09 12:14 AM, Luca C. said: >Hi there, is there a clean way to let the user edit a cell of a table view >using a ctrl click event? Do i have to subclass my table view or there is >another trick to do this? That's vague... what have you tried? Have you read:

Re: Field editor undo vs document dirty

2009-04-07 Thread Quincey Morris
On Apr 7, 2009, at 08:06, Adam R. Maxwell wrote: Have your controller object implement the NSEditor protocol. Send the document objectDidBeginEditing:/objectDidEndEditing: at the appropriate times (maybe using text delegate notifications), and it will send you commitEditing/discardEditing

Re: Need localization-proof method of transporting dates.

2009-04-07 Thread Graham Cox
On 08/04/2009, at 4:18 AM, Christopher Kane wrote: Now that everybody else has had their say, I'll throw in my two bits: ;-) * as others have pointed out, never store the hash of an object or data computed from the hash, nor transmit the hash of an object outside a process, if your goal

(no subject)

2009-04-07 Thread Tilo Villwock
Hi, is there a way to manipulate the order NSToolbarItems are added to a toolbar, when the application is starting. I have implemented the delegate methods to provide the items, and which items are allowed, but since items are fetched by identifier and not by position i don't see how this

order of NSToolbarItems in toolbar

2009-04-07 Thread Tilo Villwock
Hi, is there a way to manipulate the order NSToolbarItems are added to a toolbar, when the application is starting. I have implemented the delegate methods to provide the items, and which items are allowed, but since items are fetched by identifier and not by position i don't see how this

Storing bundle loaded main class instances in NSArray

2009-04-07 Thread Daniel Luis dos Santos
Hello, I have some code that loads a bundle like : [NSBundle bundleForPath: path] Then I get its main class. Then I cycle through some parameters that initialize that loaded main class and stores each new instance in a NSMutableArray. Problem is that when I do the assignment to th

Re: order of NSToolbarItems in toolbar

2009-04-07 Thread Graham Cox
On 08/04/2009, at 10:18 AM, Tilo Villwock wrote: is there a way to manipulate the order NSToolbarItems are added to a toolbar, when the application is starting. I have implemented the delegate methods to provide the items, and which items are allowed, but since items are fetched by identif

Re: Storing bundle loaded main class instances in NSArray

2009-04-07 Thread Graham Cox
On 08/04/2009, at 10:23 AM, Daniel Luis dos Santos wrote: The only thing I can think of, to see something like this is that I am probably overwriting the NSFileManager's class internal tables and therefore the message. When I comment out the assignment it all goes well. The class that I

Simple printing hangs

2009-04-07 Thread James Walker
I want to print some text that will almost surely fit on one page. I thought I could just set up a window without making it visible, and print the content view of the window, with code like this: NSView* contentView = (NSView*) [oPrintWindow contentView]; NSPrintInfo *pi = [NSP

re: SQLite3 and Unicode Strings - Problem

2009-04-07 Thread Ben Trumbull
In my application, I have the need to store strings with non-latin characters in a SQLite database. But when I insert them, they become corrupt. When i bind the string to the prepared statement, i do make sure it is in UTF-8: sqlite3_bind_text(sentence_insert_statement, 1, [string UTF8String], -1

Re: Simple printing hangs

2009-04-07 Thread I. Savant
On Apr 7, 2009, at 8:33 PM, James Walker wrote: I want to print some text that will almost surely fit on one page. I thought I could just set up a window without making it visible, and print the content view of the window, with code like this: How about running it in the debugger and pre

Re: Need localization-proof method of transporting dates.

2009-04-07 Thread Michael Ash
On Tue, Apr 7, 2009 at 7:57 PM, Graham Cox wrote: > I'm doing this, which is the first step in building an NSData representation > of the various objects, prior to SHA-1 digesting the result. Be good to know > if this is adequate for system/architecture independence. The intention is > that the di

Re: finder file size

2009-04-07 Thread Jo Phils
Thank you I.S. and all who replied! :-) It's my understanding that [NSFileManager fileAttributesAtPath:traverseLink:] will do fine for a single file but for directories it won't include the sizes of the subdirectories as Finder does. That's what I got in my testing as well but maybe I'm missin

Re: Need localization-proof method of transporting dates.

2009-04-07 Thread Graham Cox
On 08/04/2009, at 1:54 PM, Michael Ash wrote: If this is also how you store your dates then this is fine. If you store them in some other way (e.g. asking the system to put them in an plist) then this is still fine as long as you're using whole numbers of seconds. If you can store arbitrary fra

Re: Need localization-proof method of transporting dates.

2009-04-07 Thread Michael Ash
On Wed, Apr 8, 2009 at 12:11 AM, Graham Cox wrote: > Well, the date itself is stored in the archive using standard archiving. I'm > not sure how it writes itself - so should I be worried? I thought I could > rely on archiving/dearchiving accurately giving me back whatever I stored > though in this

Re: SQLite and Unicode

2009-04-07 Thread Adam R. Maxwell
On Apr 7, 2009, at 11:54 AM, Тимофей Даньшин wrote: I will now have to find another "unicode-safe" way to split the string into sentences. Others have addressed your Unicode issues, but for splitting a string into sentences (or other units), I'd use CFStringTokenizer with kCFStringTokeni

Re: Need localization-proof method of transporting dates.

2009-04-07 Thread Graham Cox
On 08/04/2009, at 2:31 PM, Michael Ash wrote: I got curious and experimented. Archiving (as in NSCoder) appears to work fine, but if you send an NSDate through an XML plist, it loses its fractional seconds! (rdar://6768646) So if you're using plist serialization, you may well not get the same d

Re: finder file size

2009-04-07 Thread Steve Christensen
Well, directories -are- a single file so it makes sense that the file size refers to exactly the directory and not its contents. Besides, for the general case of looking at files/folders in a particular directory, you could get all the attributes quickly without paying a time penalty to rec

Fully transparent window opaque to mouse?

2009-04-07 Thread Chris G
Hello all, Is there a way to create a full screen window which has an alpha value of 0 (fully transparent) but which is opaque to mouse events? I have thus far found that setting the window alpha below 0.06 or so causes mouse events to pass through the window. If not, is there a way to install a

Difference between SEL and const char* when sending a message?

2009-04-07 Thread Daqi Pei
Hi everyone. I'm new to Objective-C but I've been working with C++ for years. I'm trying to understand how the selector mechanism works. So far it seems to me that SEL is simply a wrapper for 'const char*', Obj-C compiler maintains a table of all method name - method function pointer pairs and pick

Re: Difference between SEL and const char* when sending a message?

2009-04-07 Thread Graham Cox
On 08/04/2009, at 1:34 PM, Daqi Pei wrote: Hi everyone. I'm new to Objective-C but I've been working with C++ for years. I'm trying to understand how the selector mechanism works. So far it seems to me that SEL is simply a wrapper for 'const char*', Obj-C compiler maintains a table of all met

Re: Difference between SEL and const char* when sending a message?

2009-04-07 Thread Graham Cox
On 08/04/2009, at 4:08 PM, Graham Cox wrote: Anyone knows why? Thanks Incidentally, this document tells you all you need to know (and can know) about the runtime: http://developer.apple.com/documentation/Cocoa/Conceptual/ObjCRuntimeGuide/Introduction/Introduction.html#/ /apple_ref/doc/u

Re: Fully transparent window opaque to mouse?

2009-04-07 Thread Dave Keck
If you've exhausted all other options, you might try taking a screenshot and drawing that into the full-screen window. This should function the same as a transparent mouse-event-grabbing window, as you described. On Tue, Apr 7, 2009 at 10:24 AM, Chris G wrote: > Hello all, > > Is there a way to c

How to find whether the file directory is a valid Mac OS X App?

2009-04-07 Thread Arun
Hi All How to find whether the file / directory is a valid Mac OS X App? Thanks Arun KA ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-adm