[iphone] UITableViewCell set cell attributes based on indexPath.row number

2009-11-23 Thread Philip Vallone
Hi List, If I have an UITableViewCell and want to set the cell attributes based on indexPath.row number, how could I do this? In the below example, the cells are drawn dynamically and work until the user moves the table. When the first 4 four rows are redrawn, their font changes. How do I set t

Re: [iphone] UITableViewCell set cell attributes based on indexPath.row number

2009-11-24 Thread Philip Vallone
Thanks Brian. That did the trick. Regards, Phil On Nov 23, 2009, at 11:55 PM, Brian Slick wrote: > The stuff outside of the if (cell == nil) block will be performed on each > cell, whether new or reused. You need to assume that the current display of > the cell is "wrong", and do what is ne

UIImageView Animation Question

2009-11-25 Thread Philip Vallone
Hi, I have a UIImageView that overlays a MPMoviePLayerController. When the movie plays, the view is in landscape. I want to have my overlay image to drop from the top of the movie and move down. The below code rotates the image. How do I get this effect? - (void)showOverlay:(NSTimer *)timer {

Re: UIImageView Animation Question

2009-11-25 Thread Philip Vallone
CGPointMake(295, 480 / 2 )]; [UIView commitAnimations]; On Nov 25, 2009, at 6:36 PM, Philip Vallone wrote: > Hi, > > I have a UIImageView that overlays a MPMoviePLayerController. When the movie > plays, the view is in landscape. I want to have my overlay image to drop from

Re: UIImageView Animation Question

2009-11-26 Thread Philip Vallone
uncan wrote: > On Nov 25, 2009, at 3:49 PM, Philip Vallone wrote: > >> CGContextRef context = UIGraphicsGetCurrentContext(); >> [UIView beginAnimations:@"moveImageDown" context:context]; >> [UIView setAnimationDuration:1.0]; >> [

isKindofClass with NSData and NSKeyUnarchiver

2010-05-27 Thread Philip Vallone
Hello, I am passing different types of data to NSData (NSString, NSArray, UIImage). I am trying to find out what kind of data t is so I know how to handle the NSData when I receive it. The below code is an example of how I am trying to do this but its always returning null. What am I doing w

Re: isKindofClass with NSData and NSKeyUnarchiver

2010-05-27 Thread Philip Vallone
Ken & Alexander, Thank you so much for your help. Your explanations are extremely helpful. Best regards, Phil On May 27, 2010, at 6:36 AM, Ken Thomases wrote: > On May 27, 2010, at 4:21 AM, Philip Vallone wrote: > >> I am passing different types of data to NSData (N

Re: isKindofClass with NSData and NSKeyUnarchiver

2010-05-27 Thread Philip Vallone
uetooth. The sender can send any type of information (NSString, UIImage etc...). The receiver needs to know how to handle this data. If there is a better way... Then how? I appreciate the feed back and help, Phil Regards, Philip Vallone On May 27, 2010, at 8:12 PM, Graham Cox wrote: >

Re: isKindofClass with NSData and NSKeyUnarchiver

2010-05-28 Thread Philip Vallone
the connection, the session is stored along with the peer id. This information can be checked before any information is received. Isn't this secure enough? Thanks, Phil On May 28, 2010, at 4:40 PM, Jens Alfke wrote: > >> On May 28, 2010, at 2:25 AM, Philip Vallone wrote: &g

NSNetService - send data to printer

2010-05-31 Thread Philip Vallone
Hi, Where can I find additional information on using NSNetService and sending data to a printer? I am able to find a printer using NSNetService, but unable to figure out how to send data. Should I use NSStream, NSSocketPort etc...? I am a bit confused. Thanks Phil ___

Re: NSNetService - send data to printer

2010-05-31 Thread Philip Vallone
Thanks Jens - always a great help. Regards, Phil On May 31, 2010, at 4:19 PM, Jens Alfke wrote: > > On May 31, 2010, at 6:50 AM, Philip Vallone wrote: > >> Where can I find additional information on using NSNetService and sending >> data to a printer? I am able to

[iPhone] Detect touches on MKMapView

2010-06-19 Thread Philip Vallone
Hi, Can you detect touches in a MKMapView? if so how? If not, how can I? Thanks for the help Phil ___ 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: Code signing issues

2011-10-17 Thread Philip Vallone
Hi, I develop for the iphone, but If the process is the same for a Mac App, you should have 2 certificates in Key chain 1. Mac Developer 2. Mac Distribution On Oct 17, 2011, at 7:34 PM, Gideon King wrote: > 1. When creating the certificates, 3 certs are created and added to the > keychain

Re: TBXML question

2012-01-13 Thread Philip Vallone
Hi Eric, Have you considered using Libxml and xpath? Take a look at http://cocoawithlove.com/2008/10/using-libxml2-for-parsing-and-xpath.html. Phil On Jan 13, 2012, at 9:23 AM, Eric E. Dolecki wrote: > I have XML like this: > > > > > > > > > > I am trying pull ou

[iOS] NSUserDefaults best practices

2011-02-05 Thread Philip Vallone
Hi, After some reading I understand that when creating a Settings Bundle for by iOS app, that I need to explicitly set the defaults. I was wondering if anyone had a preference for where you are setting the defaults. For example in the App Delegate. I decided to use a singleton to set my defaul

Re: [iOS] NSUserDefaults best practices

2011-02-05 Thread Philip Vallone
Thanks Matt and thanks to all the others that replied. Regards, Phil On Feb 5, 2011, at 5:46 PM, Matt Neuburg wrote: > On Sat, 05 Feb 2011 07:33:08 -0500, Philip Vallone > said: >> Hi, >> >> After some reading I understand that when creating a Settings Bundle fo

HTML Writer class

2011-03-21 Thread Philip Vallone
Hi list, Is there a Cocoa Touch class for creating HTML documents? For example, in C# there is the HTMLDoument class. I searched the reference docs, but came up empty. Regards, Phil ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please d

Re: HTML Writer class

2011-03-21 Thread Philip Vallone
Thanks Mike! On Mar 21, 2011, at 10:45 AM, Mike Abdullah wrote: > https://github.com/karelia/KSHTMLWriter > Standard BSD license ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the li

Remove KVO for MKAnnotationViews

2011-04-10 Thread Philip Vallone
Hi, I am in need of some help. I have a MKMapView object, which allows the user to add, move and delete MKAnnotationViews. When an Annotation is added to the map, I use KVO to track if the Annotation was moved or selected: for (MKAnnotationView *anAnnotationView in views) {

Show UIActivityIndicatorView asynchronously

2011-04-28 Thread Philip Vallone
Hi, I have a UIViewController that can take a few seconds to load. The view searches an XML file and eventually displays the resuts. I want to show a UIActivityIndicatorView while the view loads. Unfortunately they are on the same thread. How can I get the UIActivityIndicatorView to display be

Re: Show UIActivityIndicatorView asynchronously

2011-04-28 Thread Philip Vallone
Thanks. Works like a charm. Regards, Phil Sent from Phil's iPhone On Apr 28, 2011, at 1:38 PM, Matt Neuburg wrote: > On Thu, 28 Apr 2011 06:26:17 -0400, Philip Vallone > said: >> Hi, >> >> I have a UIViewController that can take a few seconds to load. The

Subclassing UItextview

2011-06-04 Thread Philip Vallone
Hi, I am taking a shot at creating a Twitter App. I was wondering if its possible to Subclass UItextview to detect hashes and respond to them. For example: "This is a tweet #iamtrending" I've seen this done in other Apps, but not sure where to start. Thanks for the help. Phil _

Re: Subclassing UItextview

2011-06-04 Thread Philip Vallone
Thanks Fritz. This is a great suggestion. On Jun 4, 2011, at 10:22 AM, Fritz Anderson wrote: > On 4 Jun 2011, at 8:32 AM, Philip Vallone wrote: > >> I am taking a shot at creating a Twitter App. I was wondering if its >> possible to Subclass UItextview to detect hashes a

Re: Subclassing UItextview

2011-06-04 Thread Philip Vallone
Thank you Conrad for your feedback. > Finally, depending on how many webviews you use, you might massacre the > performance of UITableView scrolling. Luckily, I am not using UITableView. I have implement the UIWebView and it works well. I am not sure if the issues you mentioned are still issue

Cast NSNumber to int

2009-11-28 Thread Philip Vallone
H, I want to cast a NSNumber to int. When I execute the below code, my result should be 1, not 68213232. What am I doing wrong? Code: NSNumber *setCurrentCount = [NSNumber numberWithInt: 1]; NSLog(@"Test NSNumber cast to int: %i", setCurrentCount); Output: Test NSNumber cast to int: 68213232

Re: Cast NSNumber to int

2009-11-28 Thread Philip Vallone
Thanks for the quick response. Works like a charm! On Nov 28, 2009, at 6:26 AM, Andrew Farmer wrote: > On 28 Nov 2009, at 03:20, Philip Vallone wrote: >> I want to cast a NSNumber to int. When I execute the below code, my result >> should be 1, not 68213232. What am I doing

Re: MacResearch Tutorial on beginning a Cocoa/iPhone app.

2009-12-03 Thread Philip Vallone
This post is very misleading. The tutorial is called "Using VVI for Graphing on iPhone" however there is no graphing. The graph is pulled in from the website and viewed through the UIWebView. Just my thoughts... On Dec 3, 2009, at 12:09 PM, lbland wrote: > hi- > > Occasionally I see a trou

[iphone] Libxml2 with a wrapper to NSArray

2009-12-03 Thread Philip Vallone
Hi, I hope I am posting this to the write list. I am trying to parse an xml file with libxml2 and xpath. I am still learning objective c and Cocoa. I found this very useful wrapper for libxml: http://cocoawithlove.com/2008/10/using-libxml2-for-parsing-and-xpath.html However, I am not sure ho

Re: [iphone] Libxml2 with a wrapper to NSArray

2009-12-04 Thread Philip Vallone
On Dec 3, 2009, at 10:34 PM, Fritz Anderson wrote: > On 3 Dec 2009, at 5:40 PM, Philip Vallone wrote: > >> NSString *filePath = [[NSBundle mainBundle] pathForResource:@"manifest" >> ofType:@"xml"]; >> NSData* xmlData = [fileP

Re: MacResearch Tutorial on beginning a Cocoa/iPhone app.

2009-12-04 Thread Philip Vallone
://code.google.com/p/core-plot/ > > Cheers, > Brian > > > On Thu, Dec 3, 2009 at 4:38 PM, Karolis Ramanauskas > wrote: >> Agreed, no network connection no graph! ;) What if I need to update my graph >> live? >> >> On Thu, Dec 3, 2009 at 2:48 PM, P

Re: [iphone] Libxml2 with a wrapper to NSArray

2009-12-04 Thread Philip Vallone
Good point - Thanks On Dec 4, 2009, at 1:32 PM, Alexander Spohr wrote: > > Am 04.12.2009 um 10:09 schrieb Philip Vallone: > >> Next I had a syntax error when declaring my NSArray and like you said it was >> pointing to an empty array: >> >>

[iPhone] Add a UIProgressView as subview to a navigationController

2009-12-05 Thread Philip Vallone
Hi list, Is it possible to add a UIProgressView as subview to a navigationController? I am trying the below example, but it does not show up. I suspect my UIProgressView is out of view... UIProgressView *progbar = [[UIProgressView alloc] initWithFrame:

[iPhone] Animate tableView reloadData

2009-12-11 Thread Philip Vallone
Hi List, I have a table that gets reloaded when a user presses a button. Is it possible to animate reloadData and if so can you point me in the right direction? Thanks Phil ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Re: [iPhone] Animate tableView reloadData

2009-12-12 Thread Philip Vallone
oid)reloadRowsAtIndexPaths:(NSArray *)indexPaths > withRowAnimation:(UITableViewRowAnimation)animation > __OSX_AVAILABLE_STARTING(__MAC_NA,__IPHONE_3_0); > > Luke > > On Dec 11, 2009, at 3:53 AM, Philip Vallone wrote: > >> >> Hi List, >> >> I have a table

Re: NSXMLParser question about duplicate nodes

2010-01-06 Thread Philip Vallone
Hi. I would recommend LibXML. This post is excellent and the the author created an Objective C Wrapper. http://cocoawithlove.com/2008/10/using-libxml2-for-parsing-and-xpath.html Regards, On Jan 6, 2010, at 2:28 PM, Eric E. Dolecki wrote: > This is what I am doing now that feels like a hack (

Re: Table object not selected on launch

2010-01-12 Thread Philip Vallone
Hi, I have a similar app that requires the same affect. What I did was create a boolean or valve that indicates if the cell can be selected. In my iphone app, this can be done in the didSelectRowAtIndexPath Method. Something like this: if (indexPath.row > getCurrent) {

[iphone] Load time and Nav View Controller.

2010-01-16 Thread Philip Vallone
Hi, I have a Navigation Based iPhone Application. If I am going from one nav view to another it may take about 3 seconds to view the next view. This is because the the view loads a large xml file into a NSArray and then must render it. My question is, how can I display a UIActivityIndicatorVie

Re: [iphone] Load time and Nav View Controller.

2010-01-16 Thread Philip Vallone
Hmmm Figured it out. I needed to run the activity indicator on another thread [NSThread detachNewThreadSelector: @selector(showIndicator) toTarget:self withObject:nil]; Thanks, On Jan 16, 2010, at 3:46 PM, Philip Vallone wrote: > Hi, > > I have a Navigation Based iPhone Ap

Re: [iphone] Load time and Nav View Controller.

2010-01-16 Thread Philip Vallone
thread is done, make the activity indicator disappear (on the main thread). > > Dave > > On Jan 16, 2010, at 2:00 PM, Philip Vallone wrote: > >> Hmmm Figured it out. I needed to run the activity indicator on another >> thread >> >> [NSThread detachNewT

[iphone] Release Navigation View Controller Question

2010-01-17 Thread Philip Vallone
Hi, I have Navigation based application. When I switch from one view to the next I use the following code. In the below code, is it ok to release "browseviewController"? BrowseViewController *browseviewController = [[BrowseViewController alloc] initWithNibName:@"BrowseViewController" bundle:

Re: [iphone] Release Navigation View Controller Question

2010-01-17 Thread Philip Vallone
es > ownership, so when *you* release, the navigationController still has a handle > on the controller, and keeps hold of it until it decides it's done with it. > > Bob > > On Sun, Jan 17, 2010 at 10:30 AM, Philip Vallone > wrote: > > Hi, > > I have N

Re: [iphone] Release Navigation View Controller Question

2010-01-18 Thread Philip Vallone
the error “EXC_BAD_ACCESS”. If I don't release the NSMutableArrays, does this mean the navigationController takes ownership of the NSMutableArrays? Thanks for all the help. Phil On Jan 17, 2010, at 6:44 AM, Philip Vallone wrote: > Thanks Tom. Great explanation! > > > On Ja

Re: [iphone] Release Navigation View Controller Question

2010-01-19 Thread Philip Vallone
spent sometime yesterday reading on memory management and sure to have more questions... Thanks again, Phil On Jan 18, 2010, at 5:58 PM, Alexander Spohr wrote: > > Am 18.01.2010 um 14:40 schrieb Philip Vallone: > >> Hi this is a follow up question on memory manageme

Proper Memory Management

2010-01-19 Thread Philip Vallone
I am I trying to learn proper memory management and have question: In the following example, which objects am I responsible to release? - (void) viewDidLoad{ NSString *tempStr = nil; NSString *filepath = [[NSBundle mainBundle] pathForResource:@"filename" ofType:@"xml"];

Re: Proper Memory Management

2010-01-19 Thread Philip Vallone
are. > All of these objects are autoreleased. > > Dave > > On Jan 19, 2010, at 1:50 PM, Philip Vallone wrote: > >> >> I am I trying to learn proper memory management and have question: In the >> following example, which objects am I responsible to release? >

Re: Proper Memory Management

2010-01-19 Thread Philip Vallone
Thanks.. Good question. The method in question "PerformXMLXPathQuery" is a wrapper that was obtained: http://cocoawithlove.com/2008/10/using-libxml2-for-parsing-and-xpath.html NSArray *PerformXMLXPathQuery(NSData *document, NSString *query) { xmlDocPtr doc; /* Load XML document

Re: Proper Memory Management

2010-01-19 Thread Philip Vallone
Thanks Jack, Considering the original example: - (void) viewDidLoad{ NSString *tempStr = nil; NSString *filepath = [[NSBundle mainBundle] pathForResource:@"filename" ofType:@"xml"]; NSData *xmlData = [NSData dataWithContentsOfFile:filepath]; NSM

[iPhone] Adding a UIView to current view

2010-01-21 Thread Philip Vallone
Hi List, I have a UIView (BubbleView) that I want to add to my current view (a loading splash screen). I have synthesized "myBubble". I have a method that when called is suppose to add the view, but the view doesn't show up. I am not sure what I am missing ChapterViewController.h @inte

Re: [iPhone] Adding a UIView to current view

2010-01-21 Thread Philip Vallone
od you always use self.myBubble. You should stick > to using your property. > > Luke > > On Jan 21, 2010, at 3:33 PM, Philip Vallone wrote: > >> >> Hi List, >> >> I have a UIView (BubbleView) that I want to add to my current view (a >> loading

Synthesize NSMutableString retain count question

2010-02-03 Thread Philip Vallone
Hi List, This is probably a very elementary question. I have a NSMutableString that I Synthesize. When I assigned a value to it: currentSection = @"Some value"; The retain count goes to 1 However if I assign a value with [currentSection setString:@"Some value"]; The retain count is still ze

Re: Synthesize NSMutableString retain count question

2010-02-03 Thread Philip Vallone
Thanks.. perfect explanation. On Feb 3, 2010, at 12:37 PM, Jens Alfke wrote: > > On Feb 3, 2010, at 3:55 AM, Philip Vallone wrote: > >> currentSection = @"Some value"; >> The retain count goes to 1 > > This assigns a new value to the pointer variable

[iPhone] add touches to MKAnnotationView

2010-08-18 Thread Philip Vallone
Hi, I have a subclass of MKAnnotationView,in which I create a custom pin (customPin, which is a UIImageView). I want to be able to move that custom Pin but I am having trouble. The touch event is being called, but my image is not moving. Here is my subclass: @implementation MyAnnotationView

Re: [iPhone] add touches to MKAnnotationView

2010-08-18 Thread Philip Vallone
Never mind... I got it. Thanks, Phil On Aug 18, 2010, at 8:42 PM, Philip Vallone wrote: > Hi, > > I have a subclass of MKAnnotationView,in which I create a custom pin > (customPin, which is a UIImageView). I want to be able to move that custom > Pin but I am having tro

[iphone] Subclass MKAnnotationView - subtitle missing

2010-08-22 Thread Philip Vallone
Hi List, I have created a custom MKAnnotationView, which allows the user to move the MKAnnotationView. My problem is that the showCallOut does not show the subTitle. I am not sure what I am missing. Here is my .h #import #import @interface ViewShedAnnotationView : MKAnnotationView{ UII

Memory question when added a view to the superView

2010-09-10 Thread Philip Vallone
Hi, If I create a view and add it to my superview, am I no longer the owner and do not have to release it? PinDetailsView *detailsView= [[PinDetailsView alloc] initWithFrame:CGRectMake(0, 0, 270, 420)]; detailsView.backgroundColor = [UIColor whiteColor]; CGRect frame = details

Re: Memory question when added a view to the superView

2010-09-10 Thread Philip Vallone
, 2010, at 4:03 PM, Dave Carrigan wrote: > On Sep 10, 2010, at 12:57 PM, Philip Vallone wrote: >> If I create a view and add it to my superview, am I no longer the owner and >> do not have to release it? > > That's not how cocoa memory management works. Nothing can ever

Re: Memory question when added a view to the superView

2010-09-10 Thread Philip Vallone
Thanks Ken and Dave. Regards, Phil On Sep 10, 2010, at 5:19 PM, Ken Thomases wrote: > On Sep 10, 2010, at 4:11 PM, Dave Carrigan wrote: > >> On Sep 10, 2010, at 1:08 PM, Philip Vallone wrote: >>> >>> Thanks for the prompt replay. >>> >>>

[iOS] Sub Class MKPlacemark - Identifying each Placemark

2010-09-11 Thread Philip Vallone
Hi, I am need of some advice. I have a MKMapView which allows users to add a bunch of MKPlacemark's that I've subclassed. How can I uniquely identify each placemark so I can store or retrieve information about that placemark? Thanks for help. Phil _

MKPinAnnotationView was deallocated while key value observers were still registered with it

2010-09-11 Thread Philip Vallone
Hi, I am trying to add a KVO for my MKPinAnnotationView class. In my MapViewController which has an instance of a MKMapView, I have the following code: - (void)mapView:(MKMapView *)mapView didAddAnnotationViews:(NSArray *)views { for (MKAnnotationView *anAnnotationView in views) {

Re: MKPinAnnotationView was deallocated while key value observers were still registered with it

2010-09-11 Thread Philip Vallone
I think I got it. for (id annotation in mapView.annotations) { [[mapView viewForAnnotation:annotation] removeObserver:self forKeyPath:@"selected"]; } Regards, Phil On Sep 11, 2010, at 7:49 AM, Philip Vallone wrote: > Hi, > > I am

Re: [iOS] Sub Class MKPlacemark - Identifying each Placemark

2010-09-11 Thread Philip Vallone
Thanks, This is a good idea. When you created the AddressAnnotation instances, what did you use as the Key (headlineKey), which made them unique? Thanks, Phil On Sep 11, 2010, at 1:00 PM, banane wrote: > for(NSString *headlineKey in [eDict allKeys]){ > float theLat = [[latDic

NSMutableURLRequest google my maps help

2010-10-24 Thread Philip Vallone
Hi, I am trying to upload a xml file to google my maps that follows the following protocol: http://code.google.com/apis/maps/documentation/mapsdata/developers_guide_protocol.html#uploading_xml POST http://maps.google.com/maps/feeds/maps/userID/full Content-type: application/atom+xml Authorizat

Re: NSMutableURLRequest google my maps help

2010-10-24 Thread Philip Vallone
Thanks Jerry. Works perfect! Regards, Phil ___ 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/Up

[iPad] Using UISplitViewController with a UITabBarController - UIPopoverController - Question

2010-11-07 Thread Philip Vallone
self.popoverController = pc; } - (void)splitViewController: (UISplitViewController*)svc willShowViewController:(UIViewController *)aViewController invalidatingBarButtonItem:(UIBarButtonItem *)barButtonItem { [navigationBar.topItem setLeftBarButtonItem:nil animated:YES]; sel

[iPhone] iterate through all the MKPolygons on my map view

2010-11-13 Thread Philip Vallone
Hi, I have added some MKPolygons to my map view. I want to loop through all my polygons and delete the one that has a certain title. My question is; how do I access the properties of the mkpolygon after the overlays have been added to the map view. This is how I am creating the MKPolygon MKP

Re: [iPhone] iterate through all the MKPolygons on my map view

2010-11-13 Thread Philip Vallone
Never mind - > overlay.title does the trick - duh On Nov 13, 2010, at 8:51 AM, Philip Vallone wrote: > Hi, > > I have added some MKPolygons to my map view. I want to loop through all my > polygons and delete the one that has a certain title. My question is; how do

iOS - Help with nasty memory leak

2010-11-27 Thread Philip Vallone
Hi, I have implemented a dragable annotation in my app. I am getting a 100% memory leak that has me puzzled. I was hoping that someone can provide some guidance. The leak is at: MKAnnotationView *draggablePinView = [[[AnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@"PinIde

Re: iOS - Help with nasty memory leak

2010-11-27 Thread Philip Vallone
]; UIImageView *imgView = [[[UIImageView alloc] initWithImage:image] autorelease]; pin.leftCalloutAccessoryView = imgView; return pin; } Thanks a bunch, Phil On Nov 27, 2010, at 11:50 AM, Joar Wingfors wrote: > > On 27 nov

Search with a UIWebView (iOS 4.2)

2010-12-26 Thread Philip Vallone
Hi List, In iOS 4.2, you can search within a webpage in Safari. Is there a search bar object that can do this in a UIWebView? Thanks, Phil ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comment

Re: Search within a UIWebView (iOS 4.2)

2011-01-02 Thread Philip Vallone
Hi List, I was wondering if any one could provide some guidance on this? Thanks, Phil On Dec 26, 2010, at 2:04 PM, Philip Vallone wrote: > Hi List, > > In iOS 4.2, you can search within a webpage in Safari. Is there a search bar > object that can do this in a UIWebView?

Core Data one to many insert question

2011-01-14 Thread Philip Vallone
Hi List, I have an Entity called "CDSites" which has a one-to-many relationship with an Entity called "CDPlacemarks". CDSites is the "Parent" and CDPlacemarks are the "Children". My Applications allows the users to create many CDSites like this: CDSites *cdSites = [NSEntityDescription

Re: Core Data one to many insert question

2011-01-14 Thread Philip Vallone
have will me deleted, > refactor it before you make the classes if you don't want to lost what you > did before. > > Pablo Pons > > > > > > > El 14/01/2011, a las 12:53, Philip Vallone escribió: > >> >> Hi List, >> >> I hav

Core Data Model One-To-Many question/help

2011-01-15 Thread Philip Vallone
Hi List, I am trying to learn core data and have a very basic question on how to set up a one-to-many relationship. Can someone look at the screen shots (links below) and provide some guidance. Do I have this set up correctly? CDSites CDAnnotations My Entity "CDSites" will have Many "CDAnnot

iOS Pass NSManagedObjectContext from my app delegate

2011-01-20 Thread Philip Vallone
Hi, Whats the best way to pass a NSManagedObjectContext object from an app delegate to other view controllers? Currently, my NSManagedObjectContext is retained like this in my app delegate: @property (nonatomic, retain, readonly) NSManagedObjectContext *managedObjectContext; @private NSMa

Re: iOS Pass NSManagedObjectContext from my app delegate

2011-01-20 Thread Philip Vallone
Hi Nick, > Did you use the Xcode template for making a CoreData application? Yes > If you have declared the property to be read-only, then the retain keyword is > not necessary. Retain and assign are only necessary if it's a read/write > property, since they tell the synthesizer what to do wi

iOS Setting frame size for MKAnnotationView

2011-01-27 Thread Philip Vallone
Hi, I am having trouble setting the size of the "call out bubble" on my viewForAnnotation protocol. How can I set the frame size of the call out? This line has no effect: [callout setFrame:CGRectMake(0, 0, 240, 240)]; Here is my code: - (MKAnnotationView *)mapView:(MKMapView *)MapView viewFor

Re: iOS Setting frame size for MKAnnotationView

2011-01-27 Thread Philip Vallone
> but that doesn't magically turn it into the callout Well that explains it :) Thanks ___ 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-adm