Re: shared preferences.

2009-10-15 Thread Sandro Noel
Thank a bunch guy's , this is exactly what i was looking for! Tegards. Sandro Noël sandro.n...@mac.com Mac OS X : Swear by your computer, not at it. -Pensez vert! avant d’imprimer ce courriel. -Go Green! please consider the environment before printing this email. On 2009-10-15, at 11:20 AM,

shared preferences.

2009-10-14 Thread Sandro Noel
Hello, I'm experiencing problems with my application preference, some part of the preferences are user specific but the licensing part is meant to be global for the computer. I am looking for a document that would explain how I can get some preferences installed in /Library or if someone co

Re: base32

2009-09-23 Thread Sandro Noel
yes i know, that makes me one of those click happy programmers... everything is so easy these days, kind of makes on's brain lazy. anyways. thank for the leads! Sandro. On 2009-09-23, at 4:42 PM, Gleb Dolgich wrote: On 23 Sep 2009, at 21:14, Sandro Noel wrote: I've been lo

base32

2009-09-23 Thread Sandro Noel
This is probably stupid but i need to ask, sorry. I've been looking all around the internet for a simple Base 32 encode/ decode cocoa function but all i can find are somehow not compatible with the PHP implementation on my web site. see, if i encode and then decode on the website everything

Re: observeValueForKeyPath returns null in the change directory???

2009-08-15 Thread Sandro Noel
thanks guy's Sandro Noël sandro.n...@mac.com Mac OS X : Swear by your computer, not at it. P -Pensez vert! avant d’imprimer ce courriel. -Go Green! please consider the environment before printing this email. On 15-Aug-09, at 7:05 PM, Kyle Sluder wrote: Unfortunately, NSController's impleme

observeValueForKeyPath returns null in the change directory???

2009-08-15 Thread Sandro Noel
Greetings. I would like to watch to prefeences change in my application. so i add these observers as so: settings = [NSUserDefaultsController sharedUserDefaultsController]; [settings addObserver:self forKeyPath:@"values.filesPath" options:(NSKeyValueObservingOptionNew | NSKeyValueObservingOption

Re: Main Event queue

2009-08-05 Thread Sandro Noel
n Aug 4, 2009, at 7:10 PM, Sandro Noel wrote: Is there a cocoa or carbon framework that would allow my software to hook onto the system main event queue, like in windows? or to hook into the window manager. I would like to peek at every message that traverse the main queue. Do you mean just you

Re: Main Event queue

2009-08-04 Thread Sandro Noel
On 4-Aug-09, at 8:20 PM, Dave Keck wrote: It sounds like an event tap might help: http://developer.apple.com/documentation/Carbon/Reference/QuartzEventServicesRef/Reference/reference.html#/ /apple_ref/c/func/CGEventTapCreate http://prefabsoftware.com/eventtapstestbench/ Dave, Nice... I thin

Main Event queue

2009-08-04 Thread Sandro Noel
Greetings, Is there a cocoa or carbon framework that would allow my software to hook onto the system main event queue, like in windows? or to hook into the window manager. I would like to peek at every message that traverse the main queue. Thank you for any information or pointers to the sub

Activating and deactivating core layer animation

2009-07-16 Thread Sandro Noel
Greetings! I was looking at core animation in interface builder, and I really like what one can do there. I need a quick tip... when i define a shadow, or an animation, i would like to be able to control in code or bindings when the shadow appears or when the animation will start in response

Re: Getting iPod icon, was Getting the network Machine Icon

2009-01-20 Thread Sandro Noel
(kOnSystemDisk, kSystemIconsCreator, 'ipdt', &iconRef); if (!err){ NSImage *image =[[[NSImage alloc] initWithIconRef:iconRef] autorelease]; ReleaseIconRef(iconRef); return image; } else return nil; } Sandro Noel. On 2

Re: NsCollectionView Selection

2009-01-19 Thread Sandro Noel
ok I agree, once customized it looks ok. rounded to 6 and transparent borders with a width of 4 . in your experience what does look better... as a rounded and border width ( to move it away from the container borders) regards Sandro Noel On 20-Jan-09, at 1:22 AM, Graham Cox wrote: On 20

Re: NsCollectionView Selection

2009-01-19 Thread Sandro Noel
HA! the radius does the trick thank you I did not see that. Sandro Noel. On 20-Jan-09, at 1:22 AM, Graham Cox wrote: On 20 Jan 2009, at 4:59 pm, Sandro Noel wrote: NSbox will not let me set the background color if the Box Type is not custom, If I do that I lose the rounded borders

Re: NsCollectionView Selection

2009-01-19 Thread Sandro Noel
Graham. NSbox will not let me set the background color if the Box Type is not custom, If I do that I lose the rounded borders. :( and i can't set the border colors either if the box type is not custom. do you have a suggestion? Sandro Noel. On 19-Jan-09, at 11:24 PM, Graham Cox

Re: NsCollectionView Selection

2009-01-19 Thread Sandro Noel
igned, I can reuse, so to me it's not a waste of time. I'll give a closer look at the NSBox, see what I can pull out of it. If I can subclass the NSBox and have it draw a gradient then that would be ok for me. Thank you Graham. Sandro Noel. On 19-Jan-09, at 11:24 PM, Graham Cox

Re: NsCollectionView Selection

2009-01-19 Thread Sandro Noel
hear that if i want something to look good i have to subclass it ? Sandro Noel. On 19-Jan-09, at 10:50 PM, Graham Cox wrote: On 20 Jan 2009, at 2:42 pm, Sandro Noel wrote: When I select an element, there is no selection indicator to show the selected item. True, you have to arrange this. I

NsCollectionView Selection

2009-01-19 Thread Sandro Noel
or, with the common colors of the current system what is it that i have to do ? do I have to subclass the NSView and implement my own drawing routines? do I have to implement a controller for the view? Can someone point me in he right direction :) please? regards Sandro Noel. ___

Re: bindings and sub array modification notification.

2009-01-19 Thread Sandro Noel
mmalc. after looking at the example page you sent me it gave me some answers about controllers that I was getting ready to ask, so thank you! Sandro Noel. On 18-Jan-09, at 8:36 PM, mmalc Crawford wrote: On Jan 18, 2009, at 5:02 PM, Sandro Noel wrote: How could I possibly observe the

Re: bindings and sub array modification notification.

2009-01-18 Thread Sandro Noel
stage in my learning of the Cocoa/Objective-C structure Memory management, bindings, delegates, controllers, Key-Value, some Carbon, I'm mixing in all the elements and all the new terms, Sorry if it causes confusion and makes helping more tedious. I'll get there :) Sandro Noel. On 1

Re: bindings and sub array modification notification.

2009-01-18 Thread Sandro Noel
works when the array is changed(added/deleted), but i would need to get notification when the content of a "host" is also changed. is that possible ? Thank you! Sandro Noel. On 18-Jan-09, at 7:53 PM, Sandro Noel wrote: Quincey, thank you for replying. Are you sayin

Re: bindings and sub array modification notification.

2009-01-18 Thread Sandro Noel
similar thing), but that is not KVO-compliant, so you must instead write [[host mutableArrayValueForKey: @"informationElements"] addObject: ...]. I think solution 1 sounds like a winner. I'll try that. Thank you! Sandro Noel. ___

bindings and sub array modification notification.

2009-01-18 Thread Sandro Noel
ValueForKey:@"informationElements"]; [self willChangeValueForKey:@"hosts.informationElements"]; [self didChangeValueForKey:@"hosts.informationElements"]; nothing happens. I'm not using the InformationArraycontroller because I am not sure of current selec

Properties and memory management with overrides.

2009-01-18 Thread Sandro Noel
; or do I have to instanceVariable = [value copy]; Thank you! Sandro Noel. ___ 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

Function for Retrieving icon from bundle's.

2009-01-16 Thread Sandro Noel
way to get machine icons with the machine model code? for example. iMac6,1 Thank you ! Sandro Noel.___ 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

Re: Getting the network Machine Icon

2009-01-16 Thread Sandro Noel
eems to be getting an answer :| Oh well... Discovery time :) Sandro Noel. On 16-Jan-09, at 2:21 AM, Sandro Noel wrote: Guy's I think I found it. Using a packet analyzer on my laptop, and using my iphone with DataCase (AFP server for iphone) when the service is resolved, finder sends a specia

Re: Getting the network Machine Icon

2009-01-15 Thread Sandro Noel
p. 4.. 000b0 c0 23 c0 23 00 0c 00 01 00 00 11 94 00 02 c0 0c.#.# 000c0 16 53 61 6e 64 72 6f 20 4e 6f 65 6c e2 80 99 73.Sandro Noel...s 000d0 20 69 50 68 6f 6e 65 0c 5f 64 65 76 69 63 65 2d iPhone._device- 000e0 69 6e 66 6f c0 2f 00 10 00 01 00 00 11 94

Re: Getting the network Machine Icon

2009-01-13 Thread Sandro Noel
model number of the machine to a NSNetService(Bonjour) TXT record. Instead of having to uery the host directly. IMHO I might be wrong, what do I know :) Sandro Noel. On 13-Jan-09, at 12:09 PM, I. Savant wrote: On Tue, Jan 13, 2009 at 11:32 AM, Sandro Noel wrote: The AFP client sen

Re: Getting the network Machine Icon

2009-01-13 Thread Sandro Noel
ilable Open Directory names. For descriptions of server parameters, see FPGetSrvrInfo in the Reference section. I will post my code here as soon as i'm done, if this is the proper solution, it does makes sense. regards Sandro Noel. On 12-Jan-09, at 2:01 PM, I. Savant wrote: On Mon, Jan

Re: Getting the network Machine Icon

2009-01-12 Thread Sandro Noel
Thanks guy's i'll ask in the Carbon-dev list. Sandro Noel. On 11-Jan-09, at 2:31 PM, Sandro Noel wrote: Greetings I'm looking for a way to programatically get the machine icon from my servers, just like finder does in the finder. for every type of mac it has a differen

Getting the network Machine Icon

2009-01-11 Thread Sandro Noel
twork hosts as finder does. I looked over the internet but could not find how finder does it. I did however find the icons in /System/Library/CoreServices/ CoreTypes.bundle/Contents/Resources/ Any suggestions on where to look?? Thank you in advance. Sandro

Re: Problem sending notification from C callback function

2009-01-09 Thread Sandro Noel
Ken thank you. the problem was elsewhere in a dictionary key name... thank you for your help!!! Sandro Noel. On 9-Jan-09, at 2:09 AM, Ken Thomases wrote: On Jan 8, 2009, at 7:57 PM, Sandro Noel wrote: I have this callback from DiskArbritation framework and I would like to send a

Re: A Data Object in Cocoa

2009-01-09 Thread Sandro Noel
whatever name that makes them different than your classe's definition. Sandro Noel.. On 9-Jan-09, at 2:49 AM, nik heger wrote: I am trying to define a pure data object in Cocoa. This object doesn't do anything, it should just act as a container for three strings. This is generally a g

Problem sending notification from C callback function

2009-01-08 Thread Sandro Noel
t in the callback, but i cant seem to typecast the context to my object type and retrieve the notification center from the object. i just do not know how to do it. could someone enlighten me please ? thank you Sandro Noel. ___ Cocoa-dev mailing list

Re: NSOperation Question

2009-01-07 Thread Sandro Noel
i meant main app. On 7-Jan-09, at 9:00 PM, Sandro Noel wrote: Thanks Ken i was not aware of run Loops, besides the one for the mail app I did not know i could just create one like that :) i'll try that. Sandro Noel. On 7-Jan-09, at 8:42 PM, Ken Thomases wrote: On Jan 7, 2009, at 6:

Re: NSOperation Question

2009-01-07 Thread Sandro Noel
Thanks Ken i was not aware of run Loops, besides the one for the mail app I did not know i could just create one like that :) i'll try that. Sandro Noel. On 7-Jan-09, at 8:42 PM, Ken Thomases wrote: On Jan 7, 2009, at 6:45 PM, Sandro Noel wrote: How would I go about having an oper

NSOperation Question

2009-01-07 Thread Sandro Noel
Greetings! I've been using NSOperation in my applications and I enjoy it's simplicity. All my Operations go into a NSOperationQueue. How would I go about having an operation stay alive as long as my application is alive, This is what I want to do. I use DiskAppearedCallback / DiskDisappe

Re: Problem with AFP server Notification seek advice.

2009-01-07 Thread Sandro Noel
Is there any documentation available for this framework besides the Header files description ? Thanks you. Sandro Noel. On 7-Jan-09, at 9:39 AM, Alastair Houghton wrote: On 6 Jan 2009, at 16:58, Sandro Noel wrote: when a server is mounted, and it notifies that it is going offline, I get

Re: Problem with AFP server Notification seek advice.

2009-01-07 Thread Sandro Noel
Thank you so much !! it's really appreciated. Sandro Noel. On 7-Jan-09, at 9:39 AM, Alastair Houghton wrote: On 6 Jan 2009, at 16:58, Sandro Noel wrote: when a server is mounted, and it notifies that it is going offline, I get a bonjour notification that the service disappeared, b

Problem with AFP server Notification seek advice.

2009-01-06 Thread Sandro Noel
some of my users use Bonjour Mounter with media centers, and do not have a keyboard or mouse to click on the dialogue. Is there a way I can tell finder to let me unmount the drives before it reacts ? or just tell him not to notify? thank you all!! S

AFP server loss notification.

2009-01-06 Thread Sandro Noel
some of my users use Bonjour Mounter with media centers, and do not have a keyboard or mouse to click on the dialogue. Is there a way I can tell finder to let me unmount the drives before it reacts ? or just tell him not to notify? thank you all!! S

Re: Very strange behaviour of NSCollectionView

2008-12-29 Thread Sandro Noel
Matteo, Did you ever get a response on this issue? Did you find a solution ? I am having the exact same problem. Thank you! Sandro Noel. On 20-Nov-08, at 4:21 AM, Matteo Manferdini wrote: Hi everyone. I'm battling against a very strange behaviour of NSCollectionView. To tell the truth

Re: Modal Session not stopping main thread.

2008-12-24 Thread Sandro Noel
]; in my ok button. after the window disappears, the menus and everything is still grayed out, and my main window still wont accept user input. Thank you. Sandro Noel. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Modal Session not stopping main thread.

2008-12-24 Thread Sandro Noel
achieve this with this code, i've tried other approaches but they did pretty much the same thing. can anyone tell me what I'm doing wrong here? please ? thank you !!! Sandro Noel. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Detecting SMB servers on the network

2008-12-01 Thread Sandro Noel
that was helpful can anyone point me in the right direction ? thank you !! Sandro Noel. ___ 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

Re: OutlineView, bindings and array of NSDictionaries.

2008-11-17 Thread Sandro Noel
Thank you Quincey, Very nice explanation i'll adjust my code. Sandro Noel. On 17-Nov-08, at 6:45 PM, Quincey Morris wrote: On Nov 17, 2008, at 13:51, Sandro Noel wrote: I cant seem to get my data to display properly in the Outline View, and i am sure it is because of the organisation

OutlineView, bindings and array of NSDictionaries.

2008-11-17 Thread Sandro Noel
me3 in the outline view they would be displayed as: > Server 1 Volume1 Volume2 Volume3 is that at all possible with my model, or do i have to change the model to fit with some requirements ? I cant find a tutorial on the out

Re: Two arrays sharing the same adress space.

2008-11-17 Thread Sandro Noel
Thank you all, for taking the time to explain the workings this was very instructive and very apreciated!!! Thank you Sandro Noel. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: Two arrays sharing the same adress space.

2008-11-16 Thread Sandro Noel
:NULL] ) { mounts = [[NSMutableArray alloc] initWithContentsOfFile:[[self applicationSupportFolder] stringByAppendingPathComponent:@"Bonjour Mounter.plist"]]; } else{ mounts = [[NSMutableArray alloc] init]; } On 17-No

Re: Two arrays sharing the same adress space.

2008-11-16 Thread Sandro Noel
File:...] bug and it still happens? Cheers, Chuck - Original Message From: Sandro Noel <[EMAIL PROTECTED]> To: Scott Ribe <[EMAIL PROTECTED]> Cc: cocoa-dev@lists.apple.com Sent: Sunday, November 16, 2008 9:16:15 PM Subject: Re: Two arrays sharing the same adress space. I&

Re: Two arrays sharing the same adress space.

2008-11-16 Thread Sandro Noel
exist yet. I'm just guessing here, I've never encountered that kind of problem in 17 years of programing in any language. mind you i'm quite new to cocoa, but i did not face that problem in any of my other cocoa programs. Sandro Noel. On 17-Nov-08, at 12:04 AM, Scott Ribe wrot

Re: Two arrays sharing the same adress space.

2008-11-16 Thread Sandro Noel
Forgot to answer the first question. This is a debug built, and I'm checking in the code where mounts is being assigned objects I have not enabled any optimization that I know of ... Sandro Noel. On 16-Nov-08, at 11:37 PM, Scott Ribe wrote: At what point in the code are you checkin

Re: Two arrays sharing the same adress space.

2008-11-16 Thread Sandro Noel
Scott. thank you for your explanation. Mounts is being used, but just not in the init function. it is being used later in the code. that is why i was geting confused because the 2 arrays, are not meant to hold the same type of data. and right now, they contain mixed data type. witch makes m

Re: Two arrays sharing the same adress space.

2008-11-16 Thread Sandro Noel
I just declared a third NSMutableArray to see if that one would have a different pointer, and well it had the same pointer somehow... what is this ? is it some type of setting ? Sandro Noel. On 16-Nov-08, at 11:22 PM, Sandro Noel wrote: Greetings. I'm having a weird behaviour, i h

Two arrays sharing the same adress space.

2008-11-16 Thread Sandro Noel
tcp." domain:nil]; [NFSScanner searchForService:@"_nfs._tcp." domain:nil]; did anyone ever have that kind of problem ? i'm a little puzzled, thank you ... Sandro Noel. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.co

Mounting AFP Programatically.

2008-11-13 Thread Sandro Noel
nyone point me towards the right framework ? Thank you! Sandro Noel. ___ 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.appl

Re: Hud window controls

2008-10-23 Thread Sandro Noel
Thank you pretty cool stuff Sandro On 23-Oct-08, at 5:52 PM, Kiel Gillard wrote: This framework looks pretty good too <http://www.binarymethod.com/content/bghudappkit.php > Kiel On 24/10/2008, at 3:06 AM, I. Savant wrote: On Thu, Oct 23, 2008 at 11:52 AM, Sandro Noel &

Hud window controls

2008-10-23 Thread Sandro Noel
Greetings. I am trying to design a HUD window, but the controls (buttons, edit boxes) don't fit color wise, is there a property i should set to have them look like the hud window? thank you. Sandro ___ Cocoa-dev mailing list (Cocoa-dev@list

Re: Instruments leaks.

2008-10-12 Thread Sandro Noel
ct 2008, at 11:31 PM, Sandro Noel wrote: for instance, the leek tells me that i have a leek here in this functions. it is a NSString categorie. - (NSString *) trimWhiteSpace { NSMutableString *s = [[self mutableCopy] autorelease]; CFStringTrimWhitespace ((C

Re: Instruments leaks.

2008-10-12 Thread Sandro Noel
Joar, thank you for the clear explanation, it will help with my leak research. Sandro. On 12-Oct-08, at 1:07 AM, j o a r wrote: On Oct 11, 2008, at 9:31 PM, Sandro Noel wrote: for instance, the leek tells me that i have a leek here in this functions. So this is actually not really

Re: Instruments leaks.

2008-10-11 Thread Sandro Noel
08, at 12:20 AM, j o a r wrote: On Oct 11, 2008, at 8:45 PM, Sandro Noel wrote: most of the leeks are created by NSString's from functions i gathered off the net. assignations like var1 = [var1 message]; This created a leek because the string being replaced is never released. or am

Re: Instruments leaks.

2008-10-11 Thread Sandro Noel
58 PM, Sandro Noel wrote: I'm in the optimizing phase of my little project and I'm trying to understand instruments to get most of the leeks out of my software. but instruments throws tons of leaked blocks for objects that should be auto-released, and objects that are still in use. how d

Instruments leaks.

2008-10-11 Thread Sandro Noel
Greetings. I'm in the optimizing phase of my little project and I'm trying to understand instruments to get most of the leeks out of my software. but instruments throws tons of leaked blocks for objects that should be auto-released, and objects that are still in use. how do I determine what

Re: comparing Strings.

2008-10-07 Thread Sandro Noel
Ok that's simple :) I Like it :) thanks you all !! On 7-Oct-08, at 6:32 AM, Negm-Awad Amin wrote: NSArray* components = [source componentsSeperatedByCharactersInSet: [NSCharacterSet …]]; NSString* result = [components componentsJoinedByString:@""]; __

comparing Strings.

2008-10-06 Thread Sandro Noel
Gretings. i'm having a problem comparing some type of strings, for example the one giving me a problem right now. is let's say in my database i have 4 version of the same string . "sandro's computer" "sandro's_computer" "sandros computer" "sandros_computer" I would like them to compare as be

performSelectorOnMainThread Help

2008-10-06 Thread Sandro Noel
Greetings. I need to gain a better understanding of performSelectorOnMainThread I have my main window that had a delegate and the delegate spawns threads, once the threads(NSOperation) are done they return a string, I use to do it thru a delegate but Core Data does not appreciate multiple ac

Re: XML XPath question

2008-10-01 Thread Sandro Noel
Chris, thank you that worked just fine, to bad the piece of information i read did not mention that... :( Sandro. On 1-Oct-08, at 12:47 PM, Chris Patterson wrote: Your XPath is almost correct, as far as I can tell. All you need to do is insert an "@" character before the "id" attribute pr

XML XPath question

2008-10-01 Thread Sandro Noel
Greetings. I am trying to retrieve some specific data from a XML document. abcd efrh ijkl

Autostart item in user profile.

2008-09-25 Thread Sandro Noel
Gretings. I would like my application to have the option to auto-start itself when the user log's in but I cant seem to find information on how to do it in the documentation. I'm probably not looking for the right keywords, could someone point me in the right direction ? thank you ! Sandr

Re: NSOperation NSOperationQueue

2008-09-24 Thread Sandro Noel
Shawn. Very clear, thank you Sandro. On 24-Sep-08, at 12:18 PM, Shawn Erickson wrote: On Wed, Sep 24, 2008 at 8:56 AM, Sandro Noel <[EMAIL PROTECTED]> wrote: Greetings. I need a clarification about the NSOpration ans NSOperationQueue I read in the documentation that the NSOpe

NSOperation NSOperationQueue

2008-09-24 Thread Sandro Noel
Greetings. I need a clarification about the NSOpration ans NSOperationQueue I read in the documentation that the NSOperation itself is non concurrent. and that i can program it to be, if I override this and that method. and configure the runtime env. I assume that means create my own thread

Re: NsPredicateEditor

2008-09-21 Thread Sandro Noel
that you can at least see the add button. You can also search the archives for some tips. --- On Thu, 9/18/08, Sandro Noel <[EMAIL PROTECTED]> wrote: From: Sandro Noel <[EMAIL PROTECTED]> Subject: NsPredicateEditor To: "cocoa-dev Users" Date: Thursday, September 18, 20

Re: escaping a string

2008-09-21 Thread Sandro Noel
Oups, I did not think of that ... newbe error :) Thanks. On 21-Sep-08, at 4:25 PM, Andrew Farmer wrote: On 21 Sep 08, at 11:14, Sandro Noel wrote: so basically what i'm dooing here, is that if i find the caracter "d" and i'm at least 4 bytes into the file, i c

Re: escaping a string

2008-09-21 Thread Sandro Noel
Stephen. I'm really new at a lot of things at this point in time...(torrents, cocoa, binary format, ) in this litle adventure of mine, so please excuse if the questions seem a little beginner's type. Would this function make more sense? is this the "right way to do it" ? so basically what

Re: escaping a string

2008-09-20 Thread Sandro Noel
Mike, thank you for the explanation, I am using NSData to unbencode the torrent file. ans sucessfully store it to a NSDictionary, "plist" so i can read it outside the software. that works just fine... The sha1 hash data is embedded raw, right in the file. No escaping is done, because there is

escaping a string

2008-09-20 Thread Sandro Noel
Greetings. i'm playing around with the torrent specification. and i'm trying to talk to a tracker. for that i need to generate an info_hash acording to the protocol definition the string needs to be escaped. The 20 byte sha1 hash of the bencoded form of the info value from the metainfo file

NsPredicateEditor

2008-09-18 Thread Sandro Noel
Greetings. I would like to use NSPredicateEditor to build a filtering string to filter out items from an array. but i cant seem to find a tutorial on the matter, and the cocoa documentation gets me lost, there is not enough information in there for me to really grasp what i should do to make

Re: alloc]init] VS new]

2008-09-18 Thread Sandro Noel
Woua cool ... Thank you Nick! my assumption was incorrect. Sandro On 18-Sep-08, at 5:04 PM, Nick Zitzmann wrote: On Sep 18, 2008, at 2:50 PM, Sandro Noel wrote: couls someone point me to the doc ? > Nick Zitzmann <http://www.chronosn

alloc]init] VS new]

2008-09-18 Thread Sandro Noel
Greetings. I'm looking thru the examples for NSOperation <-- my god thread made easy, what a dream come true. I noticed the [Object new] message instead of [[Object alloc]init] i've been looking for the diference, and couls not yet find it in the documentation. could someone explain ? wh

Re: Core Data Bindings. weird behavior.

2008-08-13 Thread Sandro Noel
ere a way to do that with bindings, or will i have to do it manually ? Thank you ! Sandro, On 13-Aug-08, at 6:37 PM, Quincey Morris wrote: On Aug 13, 2008, at 15:19, Sandro Noel wrote: the colums is bound with Value, transaction.transactiontype.name the combo box is content bound to a array cont

Re: Core Data Bindings. weird behavior.

2008-08-13 Thread Sandro Noel
o get renamed, well because the reference object got renamed. how do i get it to update the relationship instead of just updating the display name. On 13-Aug-08, at 5:24 PM, Quincey Morris wrote: On Aug 12, 2008, at 20:10, Sandro Noel wrote: I have these entities, with these attribute

Re: Core Data Bindings. weird behavior.

2008-08-13 Thread Sandro Noel
should i go about this... ? On 13-Aug-08, at 5:24 PM, Quincey Morris wrote: On Aug 12, 2008, at 20:10, Sandro Noel wrote: I have these entities, with these attributes and relationships. entity: Transactions attributes: field1, field2 relationship : transactionType entity: TransactionTypes

Re: Core Data Bindings. weird behavior.

2008-08-13 Thread Sandro Noel
t you described. next time i'll put in the same info. Sandro. On 13-Aug-08, at 2:13 AM, Chris Hanson wrote: On Aug 12, 2008, at 8:10 PM, Sandro Noel wrote: I have these entities, with these attributes and relationships. entity: Transactions attributes: field1, field2 relationship : tra

Core Data Bindings. weird behavior.

2008-08-12 Thread Sandro Noel
Greetings. I'm having a weird behavior with the bindings and core data. i'm sure it's the way the bindings are set that causes my problem but i can not find the answer. so i'll ask you guy's :) I have these entities, with these attributes and relationships. entity: Transactions attribu

Re: Core Data question

2008-08-10 Thread Sandro Noel
Graham. Wow, that worked ... Thank you so Much ! Sandro. On 10-Aug-08, at 9:51 PM, Graham Perks wrote: On Aug 10, 2008, at 8:39 PM, Sandro Noel wrote: So I think my question here, is, what should I use when inserting a detail object to properly set the relationship to Account. some

Re: Core Data question

2008-08-10 Thread Sandro Noel
Graham. Thank you for the code. so what I should do if I understand your code, is fetch my account's managed object, before i insert any details. Sandro. On 10-Aug-08, at 9:51 PM, Graham Perks wrote: On Aug 10, 2008, at 8:39 PM, Sandro Noel wrote: So I think my question here, is,

Re: Core Data question

2008-08-10 Thread Sandro Noel
Greetings. I've read the documentation on core data over again, and I'm still confused about how to manipulate relationships. every time I try an insert/add and there is a relationship involved, the insert crashes. (programatically that is, bindings work just fine) maybe, the way I think it

Re: Core Data question

2008-08-08 Thread Sandro Noel
Chris, thank you! the database itself is designed as a relational database would be, it's quite large actually, I just posted here two tables to illustrate the problem. The software I am building is a personal one, to help me track my budget. the goal is to import my transactions at the end

Re: Core Data question

2008-08-08 Thread Sandro Noel
On 8-Aug-08, at 2:41 PM, Negm-Awad Amin wrote: You should name your entities in the singular, as if you were naming classes, and you should name the properties (attributes & relationships) of your entities starting with a lower-case letter as if you were naming the properties of a class. Th

Re: Core Data question

2008-08-07 Thread Sandro Noel
Quincey & Marco, Thank you guy's, Very helpful information! :) Sandro On 6-Aug-08, at 3:31 PM, Sandro Noel wrote: Greetings! :) I'm experimenting with core data, bindings work just fine, I love them and it's great and all. :) but I want to import a massive file into t

Core Data question

2008-08-06 Thread Sandro Noel
Greetings! :) I'm experimenting with core data, bindings work just fine, I love them and it's great and all. :) but I want to import a massive file into the database. so I'm trying to create it programatically. So far I've been able to insert records in simple entities, using some code f

Interface Builder, tree view like Mac Mail or itunes

2008-08-03 Thread Sandro Noel
Hello! I would like to know how to design an interface that resembles the Mac Mail application most specifically, the tree view, I cant seem to set the proper properties in interface builder to achieve the same thing... so far, i've got the split view, and the right pane, just liek i want

Re: Some crash.

2008-08-03 Thread Sandro Noel
that functionality is manipulating the data itself. Ah, still learning :) Sandro. On 3-Aug-08, at 11:56 AM, Clark Cox wrote: On Sat, Aug 2, 2008 at 9:15 PM, Sandro Noel <[EMAIL PROTECTED]> wrote: Chris. Thank you for the explaination!! but it leaves me with a question, where should i u

Re: Some crash.

2008-08-02 Thread Sandro Noel
a... sorry bout that. thank you for your help. On 2-Aug-08, at 8:08 PM, Chris Hanson wrote: On Aug 2, 2008, at 2:07 PM, Sandro Noel wrote: when the Array is filled on application init, the data displays fine, but if I add to the array "programatically" the new data is not d

Re: Some crash.

2008-08-02 Thread Sandro Noel
bleView reloadData]; But both have no effect. any help is appreciated. thank you all. Sandro/ On 2-Aug-08, at 3:43 PM, Adam R. Maxwell wrote: On Aug 2, 2008, at 11:03 AM, Sandro Noel wrote: Greetings, I don't quite know how to explain this.. :) so please excuse me if I'm not v

Re: Some crash.

2008-08-02 Thread Sandro Noel
, 2008, at 11:03 AM, Sandro Noel wrote: Greetings, I don't quite know how to explain this.. :) so please excuse me if I'm not very precise. [...] 2008-08-02 13:52:23.411 OFXImport[27702:10b] *** -[OFXTransaction copyWithZone:]: unrecognized selector sent to instance 0xf4fb80

Re: Some crash.

2008-08-02 Thread Sandro Noel
I've tried enumerating the objects to the log, with a button on the interface. and they are all still in memory, they are not being released. all the items report. anything else ? Sandro. On 2-Aug-08, at 2:06 PM, mm w wrote: maybe a retain problem On Sat, Aug 2, 2008 at 11:03 AM, S

Some crash.

2008-08-02 Thread Sandro Noel
Greetings, I don't quite know how to explain this.. :) so please excuse me if I'm not very precise. In my application controller i have an object "statement" that contains an array of "transactions" called transactions. here is the structure of transaction. @interface OFXTransaction : NSOb