Never mind. It helps to have a valid target-selector combination if
you hope to run a valid method. Excuse me while I go sit in the corner
with the office DUNCE hat on...
On Jun 17, 3:54 pm, Michael Shannon Potter <
mspot...@gmail.com> wrote:
> I must be doing something wrong. [ [ConnectionManager
> sharedInstance ] runJob:@selector( validateUser )
> onTarget:ActiveUser ], for example, results in EXC_BAD_ACCESS on the
> __opLock thread when [operationQueue addOperation:operation] is
> called. I'm running on iPhone OS 3.0. Any ideas?
>
> On May 1, 4:41 pm, Adam Alexander <
adama...@gmail.com> wrote:
>
>
>
> > I agree, in Jon's example, the expensive (network-intensive) work is
> > being done inside loadItems so that is the method being passed to the
> >ConnectionManagerto run asynchronously. This method populates
> > > >>> [[ConnectionManagersharedInstance] runJob:@selector(loadItems)
> > > >>> onTarget:self];
> > > >>> }
>
> > > >>> - (void)loadItems{
> > > >>> self.teams = [league findAllTeams];
> > > >>> [self.tableView performSelectorOnMainThread:@selector(reloadData)
> > > >>> withObject:nil waitUntilDone:NO];
> > > >>> }
>
> > > >>> The beauty is that, what i really did was just created a generic
> > > >>> TableViewController with the connection manager stuff in it, and
> > > >>> then
> > > >>> i subclass that for all my networked views. Then i just implement
> > > >>> 'loadItems'. Its really nice.
>
> > > >>> On May 1, 2009, at 4:11 PM, Michael Shannon Potter wrote:
>
> > > >>>> Forgive my ignorance, but what isConnectionManager, and where
> > > >>>> can I
> > > >>>> access it? :-\
>
> > > >>>> On Apr 29, 3:57 pm, Adam Alexander <
adama...@gmail.com> wrote:
> > > >>>>> I like those ideas Justin; the types of things you're doing could
> > > >>>>> be
> > > >>>>> the origin of an ObjectiveScaffold project =) That is something I
> > > >>>>> would be interested to work on as time allows.
>
> > > >>>>> Adam
>
> > > >>>>> On Apr 29, 2:24 pm, jcnnghm <
jcnn...@gmail.com> wrote:
>
> > > >>>>>> I just got done integrating theConnectionManagerinto my code as
> > > >>>>>>> you have as theConnectionManageris young and can still be
> > > >>>>>>> improved
> > > >>>>>>> according to how we all decide it should best integrate.
> > > >>>>>>> Especially
> > > >>>>>>> if you find yourself repeating a lot of your client code in your
> > > >>>>>>> use
> > > >>>>>>> of this class, maybe that is a clue that something can be
> > > >>>>>>> brought
> > > >>>>>>> in
> > > >>>>>>> to the framework to allow the client code to be even simpler.
> > > >>>>>>> Thanks
> > > >>>>>>> for taking the time to post.
>
> > > >>>>>>> Adam
>
> > > >>>>>>> On Apr 23, 10:10 pm, "
casualdistractionga...@gmail.com"
>
> > > >>>>>>> <
casualdistractionga...@gmail.com> wrote:
> > > >>>>>>>> Just wanted to let you know I tried the async loading
> > > >>>>>>>>ConnectionManagerin 1.1