clarifications about coredata sub to-many entities fetching

2010-10-09 Thread Nicolas Berloquin
Hi ! I'm fairly new at using coreData on and I'd like to have some clarifications on managedObjects and contexts usage. I have a model where a top entity has a couple to-many relationships, which each have to-many relationships to other entities. something like this : A to-many - B to-many - C

Re: clarifications about coredata sub to-many entities fetching

2010-10-09 Thread Nicolas Berloquin
think the confusion is clearing up ! thanks again :) On Sat, Oct 9, 2010 at 7:20 PM, Keary Suska cocoa-...@esoteritech.comwrote: On Oct 9, 2010, at 3:55 AM, Nicolas Berloquin wrote: I'm fairly new at using coreData on and I'd like to have some clarifications on managedObjects and contexts

coreData fetch ok in Sim but nil on device

2010-10-07 Thread Nicolas Berloquin
Hi ! I'm having this weird behavior with coreData managedObjects. I have a very simple entity that I show in a UITableView, and store with coreData. When I run my app on the Simulator, everything works as expected, load/save/delete. And when I quit and relaunch the app, all is ok. But when I

Re: coreData fetch ok in Sim but nil on device

2010-10-07 Thread Nicolas Berloquin
Solved my problem. I changed my definitions to use @dynamic and the auto generation from the data model. I still don't understand why it works on the simulator, and not on the device... On Thu, Oct 7, 2010 at 11:44 AM, Nicolas Berloquin cepak...@gmail.comwrote: Hi ! I'm having this weird

reused tableViewCell UILabel text is deallocated but not nil ??

2010-10-07 Thread Nicolas Berloquin
Hi ! I have a UITableView that creates/reuses tableViewCells ( UITableViewCellStyleDefault) on demand, as is usually done, ie cellForRowAtIndexPath: uses the same cells over and over. When I delete a few rows, then add a new one, I crash when I try to set the cell's UILabel (right after the cell

Re: reused tableViewCell UILabel text is deallocated but not nil ??

2010-10-07 Thread nicolas berloquin
Le 7 oct. 2010 à 18:06, Keary Suska cocoa-...@esoteritech.com a écrit : On Oct 7, 2010, at 8:09 AM, Nicolas Berloquin wrote: Hi ! I have a UITableView that creates/reuses tableViewCells ( UITableViewCellStyleDefault) on demand, as is usually done, ie cellForRowAtIndexPath: uses

Re: reused tableViewCell UILabel text is deallocated but not nil ??

2010-10-07 Thread nicolas berloquin
Of course, hmm why didn't I think of that. I'll check for this. The thing is that this string object is an nsmanaged coredata object, that I just pass around. But thanks for the pointer ! Le 7 oct. 2010 à 18:38, glenn andreas gandr...@mac.com a écrit : On Oct 7, 2010, at 11:30 AM, nicolas

Re: Socket Blocking Question

2010-01-20 Thread nicolas berloquin
I may not have fully grasped your problem but you seem to say that getting 'pieces' of the reply generates a lot of problems for you. Couldn't you have a socket that buffers the replies and that sends the whole aggregated messages to the rest of the app when done ? You could have a special

Re: Socket Blocking Question

2010-01-20 Thread nicolas berloquin
This is a genuine question/remark that pops up. No check is done on what selector or object is returned or is it ? If this is done on a public service (web server or other), couldn't code injection be too easilly done that way ? (easy hacking, wilfull crash etc) ? Le 20 janv. 2010 à

coreAnimation CALayers and NSViews, which to use ?

2010-01-13 Thread Nicolas Berloquin
Hi ! I'm new to coreAnimation, and there is something that I don't grasp yet. I'd like to composite a series of images (sometimes a few hundred) inside a view. Those images will sometimes remain where they are, or be resized or moved around. From what I understand, backing an NSView with a

saving core animation layer to file

2010-01-08 Thread Nicolas Berloquin
Hi ! I'm asking here before I jump so that I don't spend too much time trying something that wouldn't work. I started out using an IKImageBrowserView only to find out that I couldn't save it to a bitmap then a jpeg. I then rewrote with NSCollectionViews, which I can output to a file without a

Re: Encrypting Binary Strings

2009-12-30 Thread nicolas berloquin
Just as a word of advise. This is a public list that's indexed by search engines. So don't reveal anything here that you'd want to keep private. I'm not advising security through obscurity. If you use keychains or similar systems, knowing how it works won't help cracking anyway. But just in

resizing NSCollectionView enclosed view items

2009-12-27 Thread Nicolas Berloquin
Hi ! I'm trying to resize the items displayed inside an NSCollectionView. I'm not trying to be too fancy, I'm fine if they're all the same size... There are two methods that seem to indicate that resizing should be taken into account (setMin/MaxItemSize), but when I setFrameSize on the prototype

Re: resizing NSCollectionView enclosed view items

2009-12-27 Thread Nicolas Berloquin
it, and I think it's quite unfortunate. (I'm not trying to flame here, I'm just a bit disappointed, and I'll probably have to rewrite the whole thing myself) On Sun, Dec 27, 2009 at 1:13 PM, Nicolas Berloquin cepak...@gmail.comwrote: Hi ! I'm trying to resize the items displayed inside

Re: NSCollectionView NSArrayController bindings from outer hell

2009-12-25 Thread nicolas berloquin
, Quincey pMorris quinceymor...@earthlink.net a écrit : On Dec 24, 2009, at 05:06, Nicolas Berloquin wrote: The strange thing is that once I made the changes, it still didn't work. I had to remove then recreate the NSCollectionView and all the views and arraycontroller in IB before

Re: NSCollectionView NSArrayController bindings from outer hell

2009-12-24 Thread Nicolas Berloquin
Why not use IKImageBrowserView? It's a perfect match for grids of images with titles. And faster too. Hi ! Well, I started out with IKImageBrowserView and it worked really well, but I needed to be able to save the whole thing as an image, and have real control over what happens with the item

NSCollectionView NSArrayController bindings from outer hell

2009-12-23 Thread Nicolas Berloquin
Hi ! I must have killed the gods of array bindings in a previous life, but I'm pulling my hair (or whatever's left), and, even though I thought I got I, well, I really don't. I'm trying to do something quite simple. I'd like to display a series of images with a label inside an NSCollectionView.

Re: NSCollectionView NSArrayController bindings from outer hell

2009-12-23 Thread Nicolas Berloquin
I forgot to mention a couple things : - my NSArrayController has the mode set to Class, and my custom content class setup. - I added a label to the item view that isn't bound to anything, just to see if it would show up, and it doesn't. which really makes me think it's an arraycontroller problem

Re: NSCollectionView NSArrayController bindings from outer hell

2009-12-23 Thread Nicolas Berloquin
Here's a followup. I hadn't written the kvo methods for the array inside my windowController (the array which holds the content for the bound NSCollectionView). I did so, and now, as soon as I add an entry to the array I get these strange exceptions : *Could not connect the action

Re: NSCollectionView NSArrayController bindings from outer hell

2009-12-23 Thread Nicolas Berloquin
(Sorry about the many emails) I thought I was using a windowController, actually I handle everything through an NSPersistentDocument that I subclassed. So the File's Owner is an NSPersistentDocument. Could this be the culprit ? ___ Cocoa-dev mailing

IKImageBrowserView managing the number of columns manually

2009-12-20 Thread Nicolas Berloquin
Hi ! I'm using an IKImageBrowserView to show a series of image captures and it works really well. I would like to be able to manage the number of images shown in a row in a precise way, and I'd like to know if there is any public way to do this ? The zoom variable is nice, but I don't like having