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:
xml version=1.0 encoding=UTF-8?
users
user name=Eric Dolecki
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
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 and respond to them
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
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
Thanks. Works like a charm.
Regards,
Phil
Sent from Phil's iPhone
On Apr 28, 2011, at 1:38 PM, Matt Neuburg m...@tidbits.com wrote:
On Thu, 28 Apr 2011 06:26:17 -0400, Philip Vallone
philip.vall...@verizon.net said:
Hi,
I have a UIViewController that can take a few seconds to load
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) {
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
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
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
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
philip.vall...@verizon.net said:
Hi,
After some reading I understand that when creating a Settings Bundle for by
iOS
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
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
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
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 with
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
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
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 have an Entity called CDSites which has a one-to-many relationship with
an Entity called CDPlacemarks. CDSites is the Parent
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?
Thanks,
Phil
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
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
*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 2010, at 06.33, 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 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
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
I access the properties
)splitViewController: (UISplitViewController*)svc
willShowViewController:(UIViewController *)aViewController
invalidatingBarButtonItem:(UIBarButtonItem *)barButtonItem {
[navigationBar.topItem setLeftBarButtonItem:nil animated:YES];
self.popoverController = nil;
}
Regards,
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
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
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
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) {
I think I got it.
for (id MKAnnotation 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 trying to add
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 = [[latDict
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 =
, 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 take ownership
from you; if you
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.
Ok I added autorelease:
PinDetailsView *detailsView
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 Foundation/Foundation.h
#import MapKit/MapKit.h
@interface
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
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 trouble. The touch event
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
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
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 find a printer using NSNetService
,
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:
This is a relative question, which
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
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 k...@codeweavers.com wrote:
On May 27, 2010, at 4:21 AM, Philip Vallone wrote:
I am passing different types of data to NSData (NSString
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 graham@bigpond.com wrote
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 zero.
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 'currentSection'. It now
points to the immutable
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
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 splash screen). I have synthesized myBubble. I have a method
that when called
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 management. In my class
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];
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?
- (void) viewDidLoad{
NSString *tempStr = nil;
NSString *filepath = [[NSBundle mainBundle
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
Thanks Jack,
Considering the original example:
- (void) viewDidLoad{
NSString *tempStr = nil;
NSString *filepath = [[NSBundle mainBundle] pathForResource:@filename
ofType:@xml];
NSData *xmlData = [NSData dataWithContentsOfFile:filepath];
receive 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 Jan 17, 2010
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
, 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 philip.vall...@verizon.net
wrote:
Hi,
I have Navigation based application. When I switch from one view to the next
I use
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
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 Application. If I
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 detachNewThreadSelector: @selector(showIndicator) toTarget:self
withObject:nil
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) {
)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 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
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
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:
wrote:
On 3 Dec 2009, at 5:40 PM, Philip Vallone wrote:
NSString *filePath = [[NSBundle mainBundle] pathForResource:@manifest
ofType:@xml];
NSData* xmlData = [filePath dataUsingEncoding:NSUTF8StringEncoding];
Separate from Sean's help, sending dataUsingEncoding
-plot/
Cheers,
Brian
On Thu, Dec 3, 2009 at 4:38 PM, Karolis Ramanauskas karol...@gmail.com
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, Philip Vallone
philip.vall...@verizon.netwrote:
This post is very
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:
NSArray* result = [NSArray
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
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
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
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 wrong?
You
, at 3:49 PM, Philip Vallone wrote:
CGContextRef context = UIGraphicsGetCurrentContext();
[UIView beginAnimations:@moveImageDown context:context];
[UIView setAnimationDuration:1.0];
[imageView setCenter:CGPointMake(295, 480 / 2 )];
[UIView commitAnimations];
Keep
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
)];
[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
the top of the movie and move down
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
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
75 matches
Mail list logo