Re: Cocoa-dev Digest, Vol 16, Issue 144

2019-11-14 Thread James Cicenia via Cocoa-dev
Well about right in terms of timing if you start architecting / developing now. Meanwhile a iPad Pro is pretty sweet for the construction/architecture industry. > On Nov 14, 2019, at 2:30 PM, Pier Bover wrote: > > What if you want to support previous macOS versions older than Catalina? > _

Re: Cocoa-dev Digest, Vol 16, Issue 144

2019-11-14 Thread James Cicenia via Cocoa-dev
Well I think the point is to go SwiftUI. Go where the puck is going. Develop for iPad Pro and use SwiftUI to gain MacOS too. I got to believe enough of your business logic is now separated enough from the UI. Regards, James Cicenia Founder James John Group, LLC (+1) 773-398-4649   ja

Re: How to turn of the Journal logging of CoreData/Sqlite?

2016-04-06 Thread James Cicenia
RestKIT bridged into my SWIFT application. This is using RestKIT api pretty straight out of the box stuff. > On Apr 6, 2016, at 10:27 AM, Jens Alfke wrote: > > >> On Apr 6, 2016, at 7:43 AM, James Cicenia > <mailto:ja...@jimijon.com>> wrote: >> >> What

How to turn of the Journal logging of CoreData/Sqlite?

2016-04-06 Thread James Cicenia
What is the magic combination of options to send to the sqlite to completely turn off journaling. I have an initialization on install that brings down a lot of data. I don’t need journaling at this point and it balloons the memory storage upon install to over 500MB! I have tried: var options

titleForHeaderInSection wrong section count.

2015-10-19 Thread James Cicenia
I have a fetch let aFetchedResultsController = NSFetchedResultsController(fetchRequest: fetchRequest, managedObjectContext: getManagedObjectContext(), sectionNameKeyPath:"product.sectionKey", cacheName:nil) In the following function: func tableView(tableView: UITableView, titleForHeaderInS

Button Image Behavior

2015-08-19 Thread James Cicenia
Hello - I am trying to toggle a button with three states. In IB I have it set to “off” In the code I toggle as such: func toggleStatus() { if(product.favorite == false && product.avoid == false){ product.favorite = true product.avoid = false favoriteB

Re: Why doesn't my Swift method get called.

2015-06-17 Thread James Cicenia
Hmm, I had a bad UIImage(named: "menu-new”) should have been menu-news as an array element in the parameter. > On Jun 17, 2015, at 9:09 AM, Dave wrote: > > What happens when you put a breakpoint in the method, rather then trying to > step into it? > >> On 17

Why doesn't my Swift method get called.

2015-06-17 Thread James Cicenia
I added a swift file to my project. I wanted to use an open source sidebar. I have checked my targets, etc. Xcode compiles, builds and runs my code without a problem. But when I debug it, it just goes over and never into the method. Why would it do that? It builds and compiles, and even if I clic

Re: Core Data won't accept this string...

2012-04-03 Thread James Cicenia
. Thank you for your time. - j- On Apr 3, 2012, at 1:18 PM, Fritz Anderson wrote: > On 3 Apr 2012, at 12:11 PM, James Cicenia wrote: > >> I am trying to import data into Core Data. I am trying to set the value of >> one the attributes to the following string: >&

Core Data won't accept this string...

2012-04-03 Thread James Cicenia
Hello - I am trying to import data into Core Data. I am trying to set the value of one the attributes to the following string: MeasureID = 2376; Property = { root = { ExtendedProperties = { item = {

Re: ALAssetsLibrary and iOS5

2011-10-29 Thread James Cicenia
; developer forum discussing this. > > Sandy > > On Oct 27, 2011, at 6:36 PM, James Cicenia wrote: > >> ALAssetsLibrary > smime.p7s Description: S/MIME cryptographic signature ___ Cocoa-dev mailing list (Cocoa-dev@lists.a

ALAssetsLibrary and iOS5

2011-10-28 Thread James Cicenia
Hello - My code now for gathering images from the photo library seems to always timeout the library instance. How can I not? Nothing I have tried works. I am using the ELCAlbumPickerController code which used to work great: dispatch_async(dispatch_get_main_queue(), ^ { NSAutoreleas

Predicates not fetching.

2011-09-15 Thread James Cicenia
Hello - I first read an xml file upon startup into a Core Data sqlite. I then fetch all records... they are there. I then do a simple predicate @"name == %@", nameString If find nothing. And it is there. Now if I open the created SQLITE database via a client tool, It also turns up zero records.

Re: Works in 4.1 but not 4.2 ...

2010-12-02 Thread James Cicenia
and possibly forced it to > recompile? > > On 02-Dec-2010, at 8:12 PM, James Cicenia wrote: > >> hmm, yes... but still it works with my XCode3.2.4 with 4.1 vs now with 3.3.5 >> and 4.2 >> >> >> 2010-12-02 06:11:40.705 CoinStar[31673:207] ***

Re: Works in 4.1 but not 4.2 ...

2010-12-02 Thread James Cicenia
45f7 -[WonderbarView didMoveToWindow] + 328 Thanks On Dec 2, 2010, at 6:03 AM, Roland King wrote: > Runtime doesn't care about casts, you have what you have, it is what it is, > that cast only shuts up the compiler. > > What's the real error and real code. > >

Works in 4.1 but not 4.2 ...

2010-12-02 Thread James Cicenia
((PersonaDetailView*)self.view).controller = self; This fails at runtime but only in 4.2. Why ? It doesn't sense the typecast and thinks it is only a UIView. Thanks James ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admi

Moving from nib to code with custom controller.

2010-03-31 Thread James Cicenia
Hello - I have always used IB before. I added my controller and linked it all up and it worked great. Now, I have to move this instead to code. I am confused on how to do this. 1) I have a custom view controller. (FeaturedViewController) 2) I have a UIScrollView (FeaturedScrollView) 3) I norma

Re: How do I find this compile error?

2009-04-23 Thread James Cicenia
Ah thanks! I won't forget that next time. Yes... core audio it was. thanks James On Apr 23, 2009, at 1:17 PM, Bill Bumgarner wrote: On Apr 23, 2009, at 11:09 AM, James Cicenia wrote: Undefined symbols: "_kCATransactionDisableActions", referenced from: _kCATransactio

How do I find this compile error?

2009-04-23 Thread James Cicenia
saction", referenced from: __objc_classrefs__d...@0 in AudioViewController.o ld: symbol(s) not found collect2: ld returned 1 exit status Thanks James Cicenia ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin req

Thanks!

2009-03-31 Thread James Cicenia
these lists are incredible in their support, help and most importantly, patience. Thanks again, James Cicenia ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the mode

Re: Multiple Images into one UIView

2009-03-12 Thread James Cicenia
Mar 12, 2009, at 2:53 PM, James Cicenia wrote: My images are very small. I have approximately 100 lines with 24 small images per line. These are all one one scrollable view. I am using a UIImageView to position each one. Just trying to get efficient as possible here. On Mar 12, 2009, at 4:48

Re: Multiple Images into one UIView

2009-03-12 Thread James Cicenia
d what you are attempting to do? Wyatt On Mar 12, 2009, at 12:42 PM, James Cicenia wrote: Is it possible to add multiple images to one UIView. I am hoping that would help my memory issue. Thanks James Cicenia ___ Cocoa-dev mailing list

Multiple Images into one UIView

2009-03-12 Thread James Cicenia
Is it possible to add multiple images to one UIView. I am hoping that would help my memory issue. Thanks James Cicenia ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list

Help, I need a jedi memory master with time and patience to help me here.

2009-03-12 Thread James Cicenia
count starts at 2 and ends at 2. I don't know if this is a hint or not. thank you kindly, James Cicenia ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moder

Re: What is using up so much memory here?

2009-03-10 Thread James Cicenia
sqlite. It should work a lot better. Thanks again for your input. James Cicenia On Mar 10, 2009, at 7:28 PM, Graham Cox wrote: On 11/03/2009, at 11:00 AM, James Cicenia wrote: Well... easier said then done. How would one place irregular shapes of the state over the map itself? Any

Re: What is using up so much memory here?

2009-03-10 Thread James Cicenia
e all of those images on screen at the same time at full size, you should either just load what you need or resize them to a more appropriate size. Dave On Mar 10, 2009, at 4:41 PM, James Cicenia wrote: Interesting... I didn't know that, but then it begs the question what do the

Re: What is using up so much memory here?

2009-03-10 Thread James Cicenia
wrote: Well, since you obviously can't have all of those images on screen at the same time at full size, you should either just load what you need or resize them to a more appropriate size. Dave On Mar 10, 2009, at 4:41 PM, James Cicenia wrote: Interesting... I didn't know that

Re: What is using up so much memory here?

2009-03-10 Thread James Cicenia
I am just overlaying colored state images over a map of the US. I don't need performance here, just memory efficiency. I will try imageWithContetsOfFile. Thanks James On Mar 10, 2009, at 6:45 PM, David Duncan wrote: On Mar 10, 2009, at 4:41 PM, James Cicenia wrote: Interesting

Re: What is using up so much memory here?

2009-03-10 Thread James Cicenia
Interesting... I didn't know that, but then it begs the question what do the cool kids do? Should I be taking a different approach here? If so, any pointers or doc chapter would be great. Thank you James Cicenia On Mar 10, 2009, at 6:33 PM, David Duncan wrote: On Mar 10, 2009,

What is using up so much memory here?

2009-03-10 Thread James Cicenia
Ok - Here is the offending code that sucks up about 2MB: NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; while(thisState = [statesEnum nextObject]){ UIImageView *singleStateView = [[[UIImageView alloc]initWithFrame:CGRectMake(2,0, 293, 184)]autorelease]; [singleStateView setIma

Re: Why does releasing this array cause a crash?

2009-03-10 Thread James Cicenia
Ah... Thank you. I understand now. James On Mar 10, 2009, at 5:41 PM, Randall Meadows wrote: On Mar 10, 2009, at 4:35 PM, James Cicenia wrote: NSMutableArray *arraySubType = [[NSMutableArray alloc]init]; OK, this array, you *should* release, yes. Then in a loop from the database I have

Why does releasing this array cause a crash?

2009-03-10 Thread James Cicenia
)]]; } Shouldn't I now release arraySubType ?? If I do, later on I get a crash, if I don't I get no crash. Thanks James Cicenia ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments t

Re: Is UITableView more memory efficient than UIScrollView?

2009-03-09 Thread James Cicenia
s one unstable area. Thank you, James Cicenia On Mar 9, 2009, at 6:43 PM, Mike Abdullah wrote: Well it rather depends what you ask UIScrollView to do for you… The most important thing is to recycle or dispose of views that are no longer visible to the user. Care to explain more what your code

Is UITableView more memory efficient than UIScrollView?

2009-03-09 Thread James Cicenia
I am trying to get my one screen to work and I feel I am having a memory issue that just causes my application to reboot. Even though UITableView subclasses UIScrollView I was wondering if it pages memory or such and would be better for my app. Thanks James Cicenia

How do I debug iPhone restarts?

2009-03-09 Thread James Cicenia
Hello - While testing on my phone, the iPhone just quits my app and doesn't write a crash log or such. How does one debug this? Thanks James Cicenia ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin reques

Re: Why don't only these images don't show on the device?

2009-03-09 Thread James Cicenia
Anyone? I have cleaned build this three times but not all the images are being moved over? Thank James Cicenia On Mar 8, 2009, at 8:43 PM, James Cicenia wrote: OK - It seems as though my builds aren't bringing over all my images. How can I force the build to include all these i

Re: Why don't only these images don't show on the device?

2009-03-08 Thread James Cicenia
OK - It seems as though my builds aren't bringing over all my images. How can I force the build to include all these images? Thanks James On Mar 8, 2009, at 6:55 PM, James Cicenia wrote: Hello - All my images show except for these: UIImageView *imageView = [[UIImageView

Why don't only these images don't show on the device?

2009-03-08 Thread James Cicenia
scrollView addSubview:imageView]; However they do show on the simulator. Is there something obvious I am missing here? James Cicenia ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments t

Re: Need to use Quartz... I think?

2009-03-07 Thread James Cicenia
Unfortunately they are not sequential. They are a graphical calendar with two images per month. They can exist, they can be yellow or they can be green. So, unfortunately, I can't do that. :-( On Mar 7, 2009, at 12:28 PM, David Duncan wrote: On Mar 7, 2009, at 10:22 AM, James Ci

Re: Need to use Quartz... I think?

2009-03-07 Thread James Cicenia
: On Mar 7, 2009, at 10:00 AM, James Cicenia wrote: I am painting my iPhone scrollable view which is nested in a parent view. I had originally been looping through and creating about a 1000 UIImageViews. This worked fine and dandy on the simulator but in real life, I think it is killing my

Need to use Quartz... I think?

2009-03-07 Thread James Cicenia
programatically. So what do I do in that case? Thanks James Cicenia ___ 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

Re: Why is my UIColor white actually gray?

2009-03-06 Thread James Cicenia
mooth. If the font is small enough, it can look gray and not pure white. On Mar 6, 2009, at 3:17 PM, James Cicenia wrote: Hmm, What do you mean? Thanks James On Mar 6, 2009, at 3:00 PM, Alex Kac wrote: Could it be anti-aliased? On Mar 6, 2009, at 2:57 PM, James Cicenia wrote: Hello - I h

Re: Why is my UIColor white actually gray?

2009-03-06 Thread James Cicenia
Hmm, What do you mean? Thanks James On Mar 6, 2009, at 3:00 PM, Alex Kac wrote: Could it be anti-aliased? On Mar 6, 2009, at 2:57 PM, James Cicenia wrote: Hello - I have a table view with dynamic subclassed cells : - (id)initWithFrame:(CGRect)aRect reuseIdentifier:(NSString

Why is my UIColor white actually gray?

2009-03-06 Thread James Cicenia
d actually gray and not white? Thanks James Cicenia ___ 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.apple.com Help/Unsubscr

Re: NSString leak or RedHerring again?

2009-03-05 Thread James Cicenia
xt(statement, 2)]]; } Thanks again, James Cicenia On Mar 5, 2009, at 1:18 PM, Bill Bumgarner wrote: On Mar 5, 2009, at 10:54 AM, James Cicenia wrote: AvailableItem is a bare bones class with just synthesize and nothing else. Why is it leaking? You need to release the strings in Avaiable

Re: NSString leak or RedHerring again?

2009-03-05 Thread James Cicenia
I had thought that @synthesize does that autmatically. I guess not. On Mar 5, 2009, at 1:18 PM, Bill Bumgarner wrote: On Mar 5, 2009, at 10:54 AM, James Cicenia wrote: AvailableItem is a bare bones class with just synthesize and nothing else. Why is it leaking? You need to release the

NSString leak or RedHerring again?

2009-03-05 Thread James Cicenia
leaking NSString. AvailableItem is a bare bones class with just synthesize and nothing else. Why is it leaking? Thanks James Cicenia ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

View Caching Issues and Questions

2009-03-04 Thread James Cicenia
ir case, I want them to be cached. Any help would be greatly appreciated. James Cicenia ___ 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 coco

SOLVED Re: All my leaks are gone... but now a memory warning?!

2009-03-04 Thread James Cicenia
I used this after opening sqlite: // Modify cache size so we don't overload memory. 50 * 1.5kb if (sqlite3_exec(database, "PRAGMA CACHE_SIZE=50;", NULL, NULL, NULL) ! = SQLITE_OK) { NSAssert1(0, @"Error: failed to set cache size with message '%s'.", sqlite3_errmsg(database)); } Thanks James

Re: All my leaks are gone... but now a memory warning?!

2009-03-03 Thread James Cicenia
tools should be able to run against the simulator and show how your memory footprint is changing. James Cicenia wrote: Ok - How do I get more information? Or what kind of information do you need? The memory issue is very opaque to me. It just happens. Is there anyway to get more info? Th

Re: All my leaks are gone... but now a memory warning?!

2009-03-03 Thread James Cicenia
Ok - How do I get more information? Or what kind of information do you need? The memory issue is very opaque to me. It just happens. Is there anyway to get more info? Thanks James Cicenia On Mar 3, 2009, at 9:52 PM, David Duncan wrote: On Mar 3, 2009, at 7:16 PM, James Cicenia wrote: I

Re: All my leaks are gone... but now a memory warning?!

2009-03-03 Thread James Cicenia
hmmm,,, how do I get that? I just put a nslog in there to see if in fact it was memory. james On Mar 3, 2009, at 9:20 PM, Roland King wrote: what is the memory warning? James Cicenia wrote: Hello - I have dutifully tracked down every leak, except for that noted nsindex issue that

All my leaks are gone... but now a memory warning?!

2009-03-03 Thread James Cicenia
dutifully followed: http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmNibObjects.html and put in my setview and deallocs of my outlets. However, this doesn't seem to cure the problem. What do I do next? I am very confused about this. Thanks James Ci

Re: I can't find the leak on this simple table view.

2009-03-02 Thread James Cicenia
No ,,, facetious works for me thanks.. just trying hard to make my little app more like a vault and less like a bank... not to be facetious. ;-) On Mar 2, 2009, at 8:10 PM, mmalc Crawford wrote: On Mar 2, 2009, at 5:52 PM, James Cicenia wrote: So how do I track this kind of

I can't find the leak on this simple table view.

2009-03-02 Thread James Cicenia
Hello - I have a table view that I popup. However it is giving me leaks and something about NSIndexPath is shown in leaks in instruments. It is leaking upon showing the table view. I have a mainview --> PopupView --> PopupView2 the PopupView2 is the one giving me the leak upon display. he

Do I need to relase @"string" ??

2009-03-02 Thread James Cicenia
[appDelegate refreshLocation:TRUE]; [(MyLocationViewController *)myParentController resetMiles]; } DO I HAVE TO WORRY ABOUT RELEASING currentMiles somewhere? Thanks James Cicenia ___ Cocoa-dev mailing list (Cocoa-dev@lists

Optimizing, uiview caching, and clearing that cached view.

2009-02-28 Thread James Cicenia
view? Thank you James Cicenia ___ 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.apple.com Help/Unsubscribe/Update your Subscri

Re: Where or when do I release this object from this action.

2009-02-27 Thread James Cicenia
Thanks That makes a lot of sense. James On Feb 27, 2009, at 5:25 PM, Sherm Pendley wrote: On Fri, Feb 27, 2009 at 5:42 PM, James Cicenia wrote: OK - The question is where do I release that object. If I put the release at the end of the method, nothing will pop into my view. If I

Re: Where or when do I release this object from this action.

2009-02-27 Thread James Cicenia
release] << If I put this in, this method will NOT show my view. } So, I am wondering how I am to release this object. Thanks James On Feb 27, 2009, at 4:23 PM, Shawn Erickson wrote: On Fri, Feb 27, 2009 at 1:57 PM, James Cicenia wrote: Here is the scenario - If I put [mpvc re

Re: Where or when do I release this object from this action.

2009-02-27 Thread James Cicenia
at 3:50 PM, I. Savant wrote: On Fri, Feb 27, 2009 at 4:43 PM, James Cicenia wrote: Here is my code: - (void)monthFruitAction:(id)sender{ MonthPickerViewController *mpvc = [[MonthPickerViewController alloc]initWithNibName:@"MonthPicker"bundle:nil

Where or when do I release this object from this action.

2009-02-27 Thread James Cicenia
itTypeView addSubview:mpvc.view]; } How should I release mpvc ? Thanks James Cicenia ___ 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: Why doesn't this work on my device?

2009-02-27 Thread James Cicenia
r whatever. Appstore here I come :-) On Feb 27, 2009, at 11:23 AM, Bill Bumgarner wrote: On Feb 27, 2009, at 9:07 AM, James Cicenia wrote: ARrrgh... The database exists but it contains nothing?! I double checked it in my trusty firefox sqlite extension, and everything is there. Is there

Re: Why doesn't this work on my device?

2009-02-27 Thread James Cicenia
ilt, etc. thanks James On Feb 27, 2009, at 10:55 AM, Bill Bumgarner wrote: On Feb 27, 2009, at 8:44 AM, James Cicenia wrote: Don't use UTF8String to get a C string for a file system path, you should use -fileSystemRepresentation. I don't even know what that is? It is document

Re: Why doesn't this work on my device?

2009-02-27 Thread James Cicenia
tion. I don't even know what that is? Thanks James On Feb 27, 2009, at 10:35 AM, Bill Bumgarner wr, ote: On Feb 27, 2009, at 7:56 AM, James Cicenia wrote: NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *doc

Re: Why doesn't this work on my device?

2009-02-27 Thread James Cicenia
anks James On Feb 26, 2009, at 11:34 PM, Bill Bumgarner wrote: On Feb 26, 2009, at 8:50 PM, James Cicenia wrote: That is helping immensely. I have isolated it to the sqlite area. I can't believe I didn't know you could debug on the device itself.. THANKS! Though it works very

Re: Why doesn't this work on my device?

2009-02-26 Thread James Cicenia
vice itself. It doesn't seem to return any rows. Do I have to do something special to get the data filled database into the phone? It is in my resources group. James On Feb 26, 2009, at 9:15 PM, Michael Ash wrote: On Thu, Feb 26, 2009 at 6:29 PM, James Cicenia wrote: hmmm... Well I am W

Re: Why doesn't this work on my device?

2009-02-26 Thread James Cicenia
somewhere getting released. I have searched the project and I am not releasing it anywhere. But, come the device, it loses itself. And then downstream methods that use this array bomb out. ? James On Feb 26, 2009, at 5:32 PM, Bill Bumgarner wrote: On Feb 26, 2009, at 3:29 PM, James Cicenia wrote

Re: Why doesn't this work on my device?

2009-02-26 Thread James Cicenia
that on the phone? James On Feb 26, 2009, at 5:25 PM, Bill Bumgarner wrote: On Feb 26, 2009, at 3:23 PM, James Cicenia wrote: I understand. I read the docs on memory management. Thought I understood it, fixed my code, etc. Then I pushed it to the phone. Maybe I need to sleep on this. Though

Re: Why doesn't this work on my device?

2009-02-26 Thread James Cicenia
x27;t work on my phone. Thanks for at least reassuring me that one day I will grok this memory inside and out. A, java... James On Feb 26, 2009, at 5:02 PM, Bill Bumgarner wrote: On Feb 26, 2009, at 2:58 PM, James Cicenia wrote: I have used both retain and without: -

Re: Why doesn't this work on my device?

2009-02-26 Thread James Cicenia
I have used both retain and without: - (void)applicationDidFinishLaunching:(UIApplication *)application { statesArray = [[[NSMutableArray alloc] init]retain]; On Feb 26, 2009, at 4:56 PM, Bill Bumgarner wrote: On Feb 26, 2009, at 2:53 PM, James Cicenia wrote: @property (nonatomic

Re: Why doesn't this work on my device?

2009-02-26 Thread James Cicenia
for (NSDictionary *dictionary2 in results) { [self.statesArray addObject:[dictionary2 objectForKey:@"state"]] ; } } [sqlite release]; } On Feb 26, 2009, at 4:14 PM, Jason Foreman wrote: On Thu, Feb 26, 2009 at 3:37 PM, James Cicenia wrote: Why d

Why doesn't this work on my device?

2009-02-26 Thread James Cicenia
Here is the code. It works on the simulator: -(NSMutableArray *)statesWithinMiles:(NSString *)miles{ NSMutableArray *states = [[NSMutableArray alloc]init]; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDi

Re: noobie mem management problem

2009-02-26 Thread James Cicenia
04946 -[WhatsFreshAppDelegate statesForItemAndMonthAndFresh:month:fresh:] So is there something "different" that I have to do for the iphone itself? Thanks James On Feb 26, 2009, at 8:10 AM, Peter N Lewis wrote: At 6:50 -0600 26/2/09, James Cicenia wrote: In .h : NSMutableArray *currentSta

noobie mem management problem

2009-02-26 Thread James Cicenia
*)sqlite3_column_text(statement, 0); [self.currentStates addObject:(str) ? [NSString stringWithUTF8String:str] : @""]; } However currentStates never gets populated and always has zero objects. What am I doing wrong. And, yes str has data. Thanks Jam

simple memory management question

2009-02-24 Thread James Cicenia
Hello - I have the following snippet: - (void)stateAction:(id)sender{ StatePickViewController *spvc = [[StatePickViewController alloc]initWithNibName:@"StatePicker" bundle:nil]; [spvc setMyParentController:self]; [spvc setDialogView:fruitTypeView]; [spvc viewWillAppea

Memory Question on returning a View

2009-02-06 Thread James Cicenia
Hello - I have the example code: Can I do this.. return a view and it will stick around? Thanks James Cicenia -(UIView *)mapViewForMonthAndType:(NSString *) pMonth type:(NSString) pType{ AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate

Re: IntefaceBuilder IPhone TableView Size Question

2009-01-27 Thread James Cicenia
2009, at 8:37 AM, James Cicenia wrote: I was now trying forever to resize the tableview when I drag it over to my window. But no matter what I can't seem to just shrink it and move it to the bottom half of my window. And the x and y boxes are grayed out no matter what I seem to do. Are you

IntefaceBuilder IPhone TableView Size Question

2009-01-27 Thread James Cicenia
my window. But no matter what I can't seem to just shrink it and move it to the bottom half of my window. And the x and y boxes are grayed out no matter what I seem to do. Is this even possible? Am I missing a switch? Thanks James Cicenia ___ Coco

Re: sqlite iphone question....

2009-01-23 Thread James Cicenia
understand where I should set or copy mydatabase.sqlite. It is in the Resource group and in the target already. Confused James Cicenia On Jan 23, 2009, at 11:39 AM, Keary Suska wrote: On Jan 23, 2009, at 10:30 AM, James Cicenia wrote: - (void)initializeDatabase { NSMutableAr

Re: sqlite iphone question....

2009-01-23 Thread James Cicenia
thanks On Jan 23, 2009, at 11:59 AM, mmalc Crawford wrote: On Jan 23, 2009, at 9:52 AM, James Cicenia wrote: Where is the "sandbox? <http://developer.apple.com/iphone/library/codinghowtos/DataManagement/index.html#FILE_MANAGEMENT-WRITE_INFORMATION_LOCALLY &

Re: sqlite iphone question....

2009-01-23 Thread James Cicenia
Hmmm,,, newbie here.. Where is the "sandbox? Thanks James On Jan 23, 2009, at 11:39 AM, Keary Suska wrote: On Jan 23, 2009, at 10:30 AM, James Cicenia wrote: - (void)initializeDatabase { NSMutableArray *items = [[NSMutableArray alloc] init]; self.produceItems =

SQLite Math Functions?

2009-01-23 Thread James Cicenia
Does anyone know if sqlite on the iphone has math functions? thanks James Cicenia ___ 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

sqlite iphone question....

2009-01-23 Thread James Cicenia
first null terminator. if (sqlite3_prepare_v2(database, sql, -1, &statement, NULL) == SQLITE_OK) { NEVER GETS PAST THIS IF. I have queried the database and the data is in there?! Thanks James Cicenia ___ Cocoa-dev mailing list (Cocoa-dev@list

Re: Newbie Memory Questions on a Code Fragment

2009-01-21 Thread James Cicenia
Thanks that helped a lot and clarified something I suspected. James On Jan 21, 2009, at 9:07 AM, Kenneth Bruno II wrote: On Jan 21, 2009, at 9:23 AM, James Cicenia wrote: Here is some code I wrote for the appdelegate to initialize some dictionaries and arrays: My main question has to do

Newbie Memory Questions on a Code Fragment

2009-01-21 Thread James Cicenia
Hello - I am new to iphone and objective-c etc. Here is some code I wrote for the appdelegate to initialize some dictionaries and arrays: My main question has to do with memory and releasing it. In my app I will need listOfMonthNames for my popups and will also need dictionaryOfProduceTypes

Re: Newbie Question on a method signature

2008-06-04 Thread James Cicenia
make assumptions and is warning you that it is doing so. Also, to compare if strings are equal you can just do: if([theString isEqualToString:@"1"]) //do stuff Just another shorter method eventhough the way you're doing it is perfectly fine. On Jun 4, 2008, at 2:14 PM

Re: Newbie Question on a method signature

2008-06-04 Thread James Cicenia
Wow.. I didn't know the order of methods was important. thanks James On Jun 4, 2008, at 3:20 PM, Hamish Allan wrote: On Wed, Jun 4, 2008 at 9:14 PM, James Cicenia <[EMAIL PROTECTED]> wrote: why does it tell me: warning: (Messages without a matching method signature will be

Newbie Question on a method signature

2008-06-04 Thread James Cicenia
} } why does it tell me: warning: (Messages without a matching method signature will be assumed to return 'id' and accept... Thank you James Cicenia t T T ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not p

iPhone - AddressBook Question

2008-05-28 Thread James Cicenia
Hello - I am new to iPhone and Cocoa, but, am definitely enjoying learning it. Anyway, I was wondering if it was possible for my application to have its own separate address book? Thanks James Cicenia ___ Cocoa-dev mailing list (Cocoa-dev