Re: How to Distinguish Between Two TableViews

2010-10-19 Thread Uli Kusterer
On 19.10.2010, at 00:32, Graham Cox wrote: > This is not necessarily a code smell. If it were, why would the tableview > object be passed as a parameter to the data source? It is a *smell*. I never said it was wrong. A smell is an indicator that something is likely wrong, not a sure-fire way to

[SOLVED] Re: [Distant Objects] Problem passing custom objects bycopy

2010-10-19 Thread Oleg Krupnov
I have been able to figure out the problem myself. Here is the solution for anyone interested. To diagnose the problem, I tried to send a test object bycopy to the server, instead of receiving an object bycopy from the server. It allowed me to locally debug what's happening when -replacementObject

Re: Tracing an iPhone application/framework

2010-10-19 Thread Jonathan del Strother
On 19 October 2010 04:38, Sandro Noël wrote: > Greetings. > > The lead developer at my workplace left his brainchild behind but forgot to > write any documentation for it. > the framework is now quite unusable because it is quite extensive an no one > knows the depth of it's architecture. > > I

Invitation to connect on LinkedIn

2010-10-19 Thread Simone Gabbriellini via LinkedIn
LinkedIn Simone Gabbriellini requested to add you as a connection on LinkedIn: -- Cameron, I'd like to add you to my professional network on LinkedIn. - Simone Accept invitation from Simone Gabbriellini http://www.linkedin.com/e/-bq75p7-gfgqm

Re: Framework Major versions

2010-10-19 Thread Bill Cheeseman
On Oct 18, 2010, at 8:12 PM, Nick Zitzmann wrote: >> >> and what should i do? > > You need to either move version A off to a separate project with the same > target, or clone the target in the same project, with a new major version & > its associated changes. Then you build both targets, and

Re: Tracing an iPhone application/framework

2010-10-19 Thread Andy Lee
On Oct 18, 2010, at 11:38 PM, Sandro Noël wrote: > The "framework" is built as a template application from which > classe/functions can be overloaded to fit the needs of the being built > application. > not much of an architecture if you ask me but i have to document it none the > less. Isn't t

Re: Tracing an iPhone application/framework

2010-10-19 Thread Sandro Noël
> On Oct 18, 2010, at 11:38 PM, Sandro Noël wrote: >> The "framework" is built as a template application from which >> classe/functions can be overloaded to fit the needs of the being built >> application. >> not much of an architecture if you ask me but i have to document it none the >> less.

Re: Heapshot Analysis to find Memory Accretion (Leaks)

2010-10-19 Thread Bill Bumgarner
On Oct 18, 2010, at 8:33 PM, Gerriet M. Denkmann wrote: > First of all: Thank you very much for this very helpful article. > > I just created a new Cocoa Document based app in Xcode (Version 3.2.4). > I did not edit any of the Xcode supplied files. > Clicked Build and then Run with Performance T

Re: How to create secondary Thread that listens to event taps?

2010-10-19 Thread eveningnick eveningnick
> You create the secondary thread, install the event tap in it as usual - that > is, create a run loop source for the tap and add the source to the current > run loop returned by CFRunLoopGetCurrent() - and then, erhm, run the run loop > in a loop :-) > > Something like (warning: typed in Eudora

MutableArray and TableView Question

2010-10-19 Thread Chris Share
I'm developing an app in which the user is able to navigate to a folder and select files. A list of the selected files for each folder is displayed in a table. This process is repeated by the user. Each time the user navigates to a new folder and selects a new group of files the process starts f

Re: MutableArray and TableView Question

2010-10-19 Thread Conrad Shultz
On my phone so I haven't ran any test code; first thoughts are below. I might see other issues when sitting at a large screen. -Conrad On Oct 18, 2010, at 23:02, Chris Share wrote: > Here's the coder that I'm using: Are you sure you copied and pasted? I can't believe that inputTablereloadDat

Re: MutableArray and TableView Question

2010-10-19 Thread Quincey Morris
On Oct 18, 2010, at 23:02, Chris Share wrote: > I'm using an NSMutable array as my data source for the table. The problem I'm > having is in clearing the array for each new folder. You have a conceptual problem here. "Data source" means something specific in Cocoa -- an object that implements t

Re: MutableArray and TableView Question

2010-10-19 Thread Matt Neuburg
On Mon, 18 Oct 2010 23:02:48 -0700 (PDT), Chris Share said: >I assume that it's the [inputArray removeAllObjects] that's causing the >problem >(?) Don't assume. Enable breakpoints and tell Xcode to break on exceptions; then build and debug. When the problem happens, you'll be stopped where it hap

Re: MutableArray and TableView Question

2010-10-19 Thread Conrad Shultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 10/19/10 12:11 PM, Quincey Morris wrote: > On Oct 18, 2010, at 23:02, Chris Share wrote: > >> I'm using an NSMutable array as my data source for the table. The >> problem I'm having is in clearing the array for each new folder. > > You have a conc

Re: How to create secondary Thread that listens to event taps?

2010-10-19 Thread Rainer Brockerhoff
At 21:11 +0300 19/10/10, eveningnick eveningnick wrote: > > You create the secondary thread, install the event tap in it as usual - > > that is, create a run loop source for the tap and add the source to the > > current run loop returned by CFRunLoopGetCurrent() - and then, erhm, run > > the run

Re: NSDictionary allValues not mutable

2010-10-19 Thread Trygve Inda
> I’d say the best solution is the one that Ken described. Implement the to-many > accessors such as countOf, objectInAtIndex:, > insertObject:inAtIndex:, and so forth. Then the underlying storage > can be an NSDictionary, a skip list, or whatever you want, and as long as your > accessors are abst

Re: Framework Major versions

2010-10-19 Thread Uli Kusterer
On 19.10.2010, at 14:26, Bill Cheeseman wrote: > I'm up to F in one of my frameworks, because I keep playing around with > things that require a change in the major version. By the way, if you'e changing the instance variable layout, a better approach than changing the framework version each ti

Re: NSDictionary allValues not mutable

2010-10-19 Thread Uli Kusterer
On 09.10.2010, at 21:59, Trygve Inda wrote: > [myDict allValues] gets the correct array and works in the table, but it is > made immutable. Is there any better way to keep the mutability other than > using allKeys then stepping through each one, obtaining its object and > adding it to an NSMutableA

Re: NSDictionary allValues not mutable

2010-10-19 Thread Trygve Inda
> >> I’d say the best solution is the one that Ken described. Implement the >> to-many >> accessors such as countOf, objectInAtIndex:, >> insertObject:inAtIndex:, and so forth. Then the underlying storage >> can be an NSDictionary, a skip list, or whatever you want, and as long as >> your >> acces

Re: Framework Major versions

2010-10-19 Thread Bill Cheeseman
On Oct 19, 2010, at 5:34 PM, Uli Kusterer wrote: > On 19.10.2010, at 14:26, Bill Cheeseman wrote: >> I'm up to F in one of my frameworks, because I keep playing around with >> things that require a change in the major version. > > By the way, if you'e changing the instance variable layout, a be

Re: Framework Major versions

2010-10-19 Thread Ken Ferry
Be careful with your resources. As far as I'm aware, all major versions of your framework will share the same .strings files, nibs, etc. -Ken On Tue, Oct 19, 2010 at 3:00 PM, Bill Cheeseman wrote: > > On Oct 19, 2010, at 5:34 PM, Uli Kusterer wrote: > > > On 19.10.2010, at 14:26, Bill Cheeseman

Re: MutableArray and TableView Question

2010-10-19 Thread Graham Cox
On 19/10/2010, at 5:02 PM, Chris Share wrote: > I'm developing an app in which the user is able to navigate to a folder and > select files. A list of the selected files for each folder is displayed in a > table. This process is repeated by the user. Each time the user navigates to > a > new f

dispatch_sync() lockup workaround

2010-10-19 Thread Abhi Beckert
Hi, According to the documentation dispatch_sync(dispatch_get_main_queue(), ^{ ... }) will lockup if you are already on the main queue. I have several methods which can be called from either a background queue or the main queue, but parts of them *must* be run on the main queue. What is a clea

Re: dispatch_sync() lockup workaround

2010-10-19 Thread Charles Srstka
On Oct 19, 2010, at 8:15 PM, Abhi Beckert wrote: > Hi, > > According to the documentation dispatch_sync(dispatch_get_main_queue(), ^{ > ... }) will lockup if you are already on the main queue. > > I have several methods which can be called from either a background queue or > the main queue, bu

Iphone view from object not from controller.

2010-10-19 Thread Sandro Noël
Greetings. I am wondering if there is a way to ask the currently topmost windows controller to show a view... from a descendant of NSObject that has no clue of the view stack, if so, how do I get a reference to that view controller from that NSObject Descendant? Thanks! Sandro.__

Re: MutableArray and TableView Question

2010-10-19 Thread Andy Lee
On Oct 19, 2010, at 2:29 PM, Conrad Shultz wrote: > Are you sure you copied and pasted? I can't believe that inputTablereloadData > (without a space) would compile, let alone run. I assumed there was some peculiarity of Chris's emailer that causes the space to get deleted, as seems to have happ

Re: MutableArray and TableView Question

2010-10-19 Thread Chris Share
Thanks to all who have responded to my question. Be aware that I'm a complete newb to Cocoa/Obj-C so it's quite possible that I'm doing something "bad"! I've managed to fix what was going wrong in my code. I'm using the following in my program: - (id)tableView:(NSTableView *)tableView objectVal

How to Post Code to This List

2010-10-19 Thread Chris Share
Hi, It seems that if I send a Rich Text message containing code to this list, it's converted to plain text and all the formatting disappears making it much harder to read. What's the best way to post code to this list so that the formatting is retained? BTW, I'm currently using Yahoo mail.

Re: How to Post Code to This List

2010-10-19 Thread B.J. Buchalter
> > What's the best way to post code to this list so that the formatting is > retained? send it plain text. Best regards, B.J. Buchalter Metric Halo http://www.mhlabs.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Re: How to create secondary Thread that listens to event taps?

2010-10-19 Thread Chris Hanson
On Oct 19, 2010, at 12:41 PM, Rainer Brockerhoff wrote: > A too-low value will make your thread activate too often (making it use more > CPU when idle) and a too-high value will make it too slow to react to > "condition" being set to NO. I usually set something between 0.5 and 1; it's > optimal