On 2009-10-31, at 19:34 , Roland King wrote:
. And why are you now talking about 4 NSURLConnections when you say
you have 2 files?
The 2-file example was a simplified case I posted when I was asking
whether the method would work. I actually have half-a-dozen or so data
files to download.
On 2009-10-31, at 19:22 , Roland King wrote:
You can trivially use one delegate to manage both these downloads,
have them happen at the same time and only call downloadFinished
when both of them have finished, or if you have more than 2, all 3,
or 4 or 127 of them.
What would be the best
than 5 seconds, even with a completely synchronous download.
dkj
On 2009-10-31, at 19:01 , Kyle Sluder wrote:
On Sat, Oct 31, 2009 at 6:50 PM, DKJ wrote:
I was worried that having a download connection for each file would
make it
more complicated for the app to know when they were all fin
All of the files have to be downloaded before the app can do anything.
I get the connectionDidFinishLoading delegate method of my one and
only NSURLConnection to call a downloadFinished method at the end of
the synchronous downloads, so the app knows everything is in place and
can start pro
read's point of view, file2 is
being downloaded asynchronously too.
Am I on the right track here? If so, it sure would simplify
downloading all those files.
dkj
P.S. It's time for my semi-anual global "Thank You" to all those list
members who've responded to my queri
hold off the parsing
until the flag is set.
So how to start the parsing? The following seems rather amateurish:
while( !downloadFinished )
[self amuseTheUser];
[self startParsing];
I suspect there's a better way.
dkj
___
Cocoa-de
On 2009-10-29, at 7:05 , Alastair Houghton wrote:
You need to rewrite your code so that the download is asynchronous.
Would doing the NSOperationQueue thing with my updateDataFiles method
be OK? The docs (Appendix A of "Threading Programming Guide") lists
NSString as being thread-safe.
___
On 2009-10-29, at 0:30 , DKJ wrote:
- (IBAction)updateButton:(id)sender
{
[UIApplication sharedApplication].networkActivityIndicatorVisible
= YES;
[downloadIndicator startAnimating];
[[DataManager sharedDataManager] updateDataFiles];
[downloadIndicator stopAnimating
indicator
visible during the download. Can someone point me towards a simple
solution?
dkj
PS: I've started reading the "Concurrency Programming Guide", but
that's going to take awhile. And for all I know at present, th
I'm doing this instead:
[self.updateButton setTitle:dateDisplay
forState:UIControlStateNormal];
and it works. But I'd still like to know why the other code didn't.
dkj
On 2009-10-27, at 12:43 , DKJ wrote:
I'm having a ridiculous amount of trouble changing the
Appear: method, so I know it's being
called.
Why won't this work?
dkj
___
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-
in it, and couldn't
reproduce the result either: nil was returned, just as the docs say it
should be.
So my self-esteem takes another hit; but that's better than losing
faith in scripture.
dkj
___
Cocoa-dev mailing list (Cocoa-dev@
Hmm... I ran a similar code snippet in another project, and nil is
returned, as the docs say.
So the file must be created somewhere else. I'll find out where.
I'm glad the docs aren't wrong.
dkj
___
Cocoa-dev mailing
--
So it looks like arrayWithContentsOfFile: is returning an empty array
when file.plist doesn't exist.
dkj
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
On 2009-10-13, at 12:12 , I. Savant wrote:
Let me see if I understand what you're saying: You are expecting
there to be *no* PLIST files (and so, you expect to get nil) but are
getting an empty array?
Bingo.
___
Cocoa-dev mailing list (Cocoa-de
27;s worth
checking.
I looked in the directory itself before running the code, and the
plist files weren't there at all.
If someone else gets the same result, perhaps they could file a bug: I
lack sufficient self-esteem to file on
I'm using this code to read an array from a plist:
NSArray *data = [NSArray arrayWithContentsOfFile:[NSHomeDirectory()
stringByAppendingPathComponent:@"/Documents/file.plist"]];
The docs say this method returns nil when the file doesn't exist
(precisely: "Returns nil if the file can’t be op
ich has been working just fine so far.
But now I'm reading through the "URL Loading System" docs, and
wondering if I should be using all the NSURLRequest stuff instead.
It's more complicated, so are there any advantages it wou
e scenes here. Is the
string actually being displayed as a subview of the text view?
dkj
___
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
I've just been using NSXMLParser for the first time. Can Excel files
be saved in XML format? If so, would NSXMLParser be a possible
solution here?
dkj
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin reques
, but I'd like to find an easier way if there is
one. At the least, I need to learn more about how these resizing
properties are supposed to work.
dkj
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or
For the archives: Joar's suggestion did the trick. Now it's all
working just the way I want.
Thanks to all those who thought about it.
dkj
On 2009-09-13, at 15:08 , Joar Wingfors wrote:
Foo.h
==
@class Bar; // <- Forward declaration of the Bar class
@interface F
s situation?
I know this must be a very basic question, but I don't even know what
terms I should google to find out about it.
dkj
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comment
P.S.
Doing the autorelease thing gave me an EXC_BAD_ACCESS too. And theData
is released in the dealloc method of MyObject.
dkj
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the
t a memory leak, and mentions
NSKeyedUnarchiver. The "retain" message in the initWithCoder makes me
wonder.
Is this code leaking? Should I add an autorelease to the retain in
initWithCoder?
dkj
___
Cocoa-dev mailing list (Cocoa-dev@li
equency. But as far as I can tell, any
sound that I want to produce has to use an audio file of some sort.
Have I missed something simple? If so, please point me to the right
place in the docs.
dkj
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.
I've managed to create files with properties (1) and (2), but I'm
stuck at (3).
I've downloaded the Audacity application, but the best I can get from
it seems to be 12,000 Hertz. Other programmes I've tried (demo
versions mostly) won't let me set an absolute frequency.
A
;t call reloadData in the
tableview controller's commitEditingStyle or moveRowAtIndexPath
methods. (I tried doing it anyway, and got into trouble.)
Is there any way I can get the table to update as soon as the user
presses the Done button? Or even better, as soon as the row deletion
ing pressed? If so,
how do I restore the previous view? If not, how should I do it?
dkj
___
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-a
s for some blank buttons and insert them into the
toolbar items array?
dkj
___
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-admi
ithout its
previous instantiation being released. But I'd sleep better having an
expert opinion.
dkj
On 18-Jul-09, at 7:59 , DKJ wrote:
I've got a UIView object that uses an NSDictionary. The UIView is
instantiated from a nib, so I initialise the dictionary in
awakeFromNib, sin
does store the CGMutablePathRefs quite nicely,
although the compiler complains about it.
dkj
___
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
As
NSValues, using valueWithPointer:?
dkj
___
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 you
I've got a UIView object that uses an NSDictionary. The UIView is
instantiated from a nib, so I initialise the dictionary in
awakeFromNib, since the initWithFrame: method is never called. Is it
appropriate to release this dictionary in the UIView dealloc method?
NSKeyedArchiver is now doing exactly
what I wanted to get done.
dkj
___
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
g is saved: didIt = 0.
I must be missing a step somewhere. I've been looking at "Archives and
Serializations Programming Guide for Cocoa", and finding it rather
bewildering. A nudge in the right direction would be much appreciated.
dkj
__
ddObject:[[[myClass alloc] init] autorelease]];
}
return self;
}
But this produces an NSInvalidArgumentException, with the message:
[NSMutableArray addObject:]: method only defined for abstract
class.
I suspect I'm missing something simp
If you're in Victoria BC or its environs, and would like to join an
informal group of fellow sufferers, please contact me off-list.
(iPhone OS developers are also welcome, of course.)
dkj
___
Cocoa-dev mailing list (Cocoa-dev@lists.appl
he Base SDK setting in the Architectures
window of the project info panel, a second Architectures section opens
beneath it. (I guess this should really now go to the Xcode list.)
dkj
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please
On 6-Jul-09, at 13:35 , David Duncan wrote:
Are you building with the 2.2.1 SDK and running on the iPhone OS 3
simulator? Perhaps the other way around? Either way, it is not a
supported configuration (the simulator OS must always match the SDK
used).
No, I'm using the 3.0 SDK.
__
On 6-Jul-09, at 11:48 , DKJ wrote:
I'm getting an intermittent infinite loop in the simulator that I
can't seem to reproduce.
Both on the simulator and the device, the problem unfolds like this:
The app goes into its loop and begins filling up all available memory
with somethin
In this specific instance, I'm getting an intermittent infinite loop
in the simulator that I can't seem to reproduce. Definitely a design
flaw. So the termination was to be for debuggering purposes only.
dkj
___
Cocoa-dev mailing list (Cocoa
regardless; however, I'm very wary of
using it if neither the compiler nor the docs mention it.
What should I do with UIApplication in these circumstances?
(exit(0) seems a bit extreme.)
dkj
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Ple
t haven't found one yet.
dkj
___
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 you
. Then whenever I want to do something with
the variable, I do things like this:
NSInteger otherVar = [self.count integerValue];
self.count = [NSNumber numberWithInteger:0];
Have I finally got it right?
dkj
___
Cocoa-dev mailing list (Coc
tions; but they will probably prevent
a lot more questions later on.
dkj
___
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-admi
is still a Cocoa question.)
In the template code for viewDidLoad, it provides [super viewDidLoad].
But there is no corresponding [super viewDidUnload] in the template
code for viewDidUnload. Should it be there anyway?
dkj
___
Cocoa-dev mailing l
Is this the right way to do it?
- (void)viewDidLoad
{
id myObject = [[NSObject alloc] init];
}
- (void)viewDidUnload
{
[myObject release];
myObject = nil;
}
- (void)dealloc
{
[myObject release];
}
___
Cocoa-dev mailing list (Cocoa-dev@lis
y"? How would
one be added "indirectly"?
dkj
___
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
Event doesn't
have any info about keypresses.
I hope I'm missing something.
dkj
___
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
On 27-Jun-09, at 16:26 , DKJ wrote:
I'm using this method:
textView:shouldChangeTextInRange:replacementText:
to let users put special symbols into a UITextView.
I detect the Return key by checking whether the input string is
equal to @"\n". But how would I detect the back-d
t do
it. And I can't seem to find any docs that list these codes.
dkj
___
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(a
This may be the solution: a UITextView instead of UITextField, with
this in the delegate:
- (BOOL)textView:(UITextView *)textView
shouldChangeTextInRange:(NSRange)range
replacementText:(NSString *)text
{
if( [text isEqualToString:@"C"] )
{
NSString *newString = [textView.te
sitioning the cursor in a UITextField? Perhaps
by manipulating a UITouch object?
dkj
___
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
egate method. But I don't see how to get it to do what I want.
Any ideas?
dkj
___
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-a
e method. But I don't see how to get it to do what I want.
Any ideas?
dkj
___
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)lis
put an NSLog call inside it to check.) I've tried
sending MySubView setNeedsDisplay messages from all kinds of places,
to no avail.
I suspect I'm missing something very simple. Any advice would be
appreciated.
dkj
___
Cocoa-dev ma
I found out what's wrong: Core Image isn't available for the iPhone OS.
dkj
___
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
I've included QuartzCore.framework in my project frameworks. This is
my header file:
#import
#import
@interface MyImageView : UIImageView {}
@end
I have this in MyImageView.m:
CGContextRef cgref = UIGraphicsGetCurrentContext();
CIContext *c =
d
of course I got an EXC_BAD_ACCESS as well.
I really want to get rid of these subView objects. Why aren't they
being deallocated? And since they're not, why am I not getting any
leaks when I set subView = nil?
dkj
___
Cocoa-de
off the rails.
What might be causing this? Is it some kind of "between frames"
condition in the animation?
dkj
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
C
positions however-often is needed to get the desired result.
Thanks again for the advice; it seems to be exactly what I needed!
dkj
On 23-Nov-08, at 9:54 , DKJ wrote:
Now I'm getting a very odd result. In the code for a UIView I have
this:
CALayer *theLayer = self.layer;
I'm looking at the CALayer docs, which has this:
- (id)presentationLayer
Return Value
A layer instance representing the current presentation layer.
Any idea what's going on? (I'm also puzzled why this metho
ent values in the
middle of an animation. As long as you have a chance to check
periodically, you should be able to do your comparisons.
I hadn't thought of using the presentation layer. It seems obvious now
that you've mentioned it! Thanks for the tip; I
of the code I've
written so far. And I don't yet have a clue whether #4 is plausible,
not having used keyframe animation before.
If there are any other suggestions, I'd be grateful to hear them!
dkj
___
Cocoa-dev mailing list (C
On 22-Nov-08, at 19:07 , Henry McGilton (Developer) wrote:
That's the standard way to
obtain the current context within drawRect
OK, I wasn't doing it within drawRect... silly me. I'll give it a try
and see what happens.
dkj
___
, but that doesn't work either: I get an "invalid context"
error when I use it in CGContextStrokeRect.
dkj
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contac
The Overview section of CGContext Reference says "You can obtain a
graphics context by using Quartz graphics context creation
functions...". But it doesn't say where to find these functions. They
don't appear to be listed in CGContext Reference itself, as far as I
can see.
I know there ar
id (a rare first edition), has anyone got a
quick solution? It seems the sort of thing that would be handy in many
situations.
dkj
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the lis
On 21-Nov-08, at 6:50 , Greg Deward wrote:
Is it possible to tab or jump to the next placeholder in the
selector?
Control-/ does it on my keyboard.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or mod
On 19-Nov-08, at 15:17 , Filip van der Meeren wrote:
If you already know you will autorelease the object and return it,
then you should call the autorelease at the same moment you create
the object.
NSString *str = [[[NSString alloc] init] autorelease];
Good point.
_
hod to obtain it, you need to release it yourself when
you're done with it.
Otherwise, you can assume that the object will dispose of itself at
some future time. But when this will happen is in practice
unpredictable, which is why you need to retain the object before doing
anything else wi
The superclass NSObjectController has a "remove" method that might do
what you want.
dkj
On 18-Nov-08, at 19:31 , Jean-Nicolas Jolivet wrote:
I was able to get it done using:
[self removeObjectsAtArrangedObjectIndexes:[NSIndexSet
indexSetWithIndexesInRange:NSMakeRange
inset another 10 pixels from the lower left corner of the
blue bounds rectangle.
When I set the origin of r to (0.0, 0.0), the red and blue rectangles
coincide.
What's happening here?
dkj
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.co
Are there any other members of this list who live in Victoria, BC?
If so, and you'd be interested in starting some kind of informal
group, please contact me off-list.
dkj
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not
I'm probably missing something simple, but I don't understand why this
line:
return (i == -1 ? [NSNull null] : [NSNumber numberWithInteger:i]);
(where i is an NSInteger) produces this warning:
"comparison of distinct Objective-C types lacks a cast"
(The return type of the met
It just clicked... no need for replies!
On 28 Oct, 2008, at 16:44, DKJ wrote:
When I did this:
myLayer.frame.size.width = rootLayer.frame.size.width;
I got an "illegal lvalue" error. But when I do this:
CGRect r = help.frame;
r.
When I did this:
myLayer.frame.size.width = rootLayer.frame.size.width;
I got an "illegal lvalue" error. But when I do this:
CGRect r = help.frame;
r.size.width = rootLayer.frame.size.width;
the compiler says nothing. Why can I use layer.frame.size on the right
of =,
When I was but a newbie,
I heard a wise man say,
"When using CALayers,
Put NSViews away."
Yet I set a CALayer,
Then added NSView;
Now many hours later,
I wail, "T'is true, t'is true!"
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do no
On 28 Oct, 2008, at 08:55, DKJ wrote:
Maybe I should just make my help info into a PDF file, and display
that on a CATextLayer.
Oops, it's the contents property of a CALayer I was thinking of here.
___
Cocoa-dev mailing list (Coco
On 28 Oct, 2008, at 08:31, I. Savant wrote:
I'd turn off
all layers and make sure it's working normally without them.
Alas, after having the Help button method hide theView's CALayer,
there's still no sign of my NSTextView subclass.
Maybe I should just make my help info into a PDF file, a
On 28 Oct, 2008, at 08:14, I. Savant wrote:
Do away with the animation logic for now. See if it
behaves as expected by setting the frames directly (without calls to
the view's -animator).
The subview appears for an instant, with its origin is in the centre
of the superview, filling the upper-
On 28 Oct, 2008, at 07:49, I. Savant wrote:
logging the view's frame each time it's drawn
This produces a strange result. The width of the subview's frame
increases by stages to that of the superview, but its height stays
constant at 14.0. All with nothing happening on the screen.
__
On 28 Oct, 2008, at 06:54, I. Savant wrote:
On Tue, Oct 28, 2008 at 9:23 AM, DKJ <[EMAIL PROTECTED]> wrote:
I'm having no luck getting a subview to display. In the
awakeFromNib of the
controller I have this:
helpView = [[MyView alloc] init];
NSView's designate
briefly in the main view.
theView does have animation layers. Would this make a difference?
dkj
___
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
I'm still puzzled. When I put this:
self.foregroundColor = nil;
in my layer's dealloc method, I get this error:
attempting to modify layer that is being finalized
But if I don't put that line in dealloc, Instruments doesn't detect
any leaks.
In the documentation, the foregr
On 26 Oct, 2008, at 12:09, Clark S. Cox III wrote:
You must do both, otherwise you will leak.
I understand why I have to release the temp object, but why does it
leak if I don't set foregroundColor to nil as well?
___
Cocoa-dev mailing list (Coco
Thanks to everyone for the replies. I have one (hopefully last)
question (on this topic):
On 26 Oct, 2008, at 09:23, Clark Cox wrote:
As long as MyCALayer's dealloc is properly implemented (to release
foregroundColor, or set it to nil), you should never need to
explicitly do so in code that us
Misprint in my last message:
[[MyCALayer alloc] init];
should be:
id mylayer = [[MyCALayer alloc] init];
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Co
il when doing
this?
3. Are sublayers retained when added to a superlayer? I'm assuming so,
since they're kept in an array. But then they should be released by
removeFromSuperView, so that shouldn't cause a leak.
dkj
___
Coco
mean one that I can just copy from somewhere.) If not I'll
try to figure it out myself; but I don't want to re-invent the wheel.
dkj
On 24 Oct, 2008, at 18:11, douglas welton wrote:
On Oct 24, 2008, at 6:50 PM, DKJ wrote:
Is there an easy way to provide a realistic shadow fo
Is there an easy way to provide a realistic shadow for a (non-
circular) layer rotating round the z-axis? (I know layer.rotateShadow
= YES is too much to hope for.)
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin req
On 23 Oct, 2008, at 11:26, Finlay Dobbie wrote:
I'm surprised nobody else has picked up on this - how is enumerating
an NSArray going to be faster than enumerating a C array?
I was referring to this:
for( TheClass *obj in TheArray ) {}
as fast enumeration.
I've just found NSPointFromCGPoint() etc,.
On 22 Oct, 2008, at 18:49, DKJ wrote:
Is there some straightforward way of wrapping a CGPoint so I can put
it in an NSArray? I don't want to use a C array because I want to
have fast enumeration available. Or should I just writ
Is there some straightforward way of wrapping a CGPoint so I can put
it in an NSArray? I don't want to use a C array because I want to have
fast enumeration available. Or should I just write a simple NSPoint -
CGPoint conversion method?
That did the trick! 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-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscr
I've got myView and myController objects in my nib file. myView is an
IBOutlet of myController. I put this in the initWithFrame: method of
myView:
CALayer *rootLayer = [CALayer layer];
[self setLayer:rootLayer];
[self setWantsLayer:YES];
But when I read myView's wants
Is there a quick way to get a CGContextRef for a CALayer? I don't see
anything obvious in the documentation for the CALayer class.
dkj
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator commen
Me again. I've been using this code:
NSURL *url = [NSURL fileURLWithPath:fname];
CGImageSourceRef source = CGImageSourceCreateWithURL((CFURLRef)url,
NULL);
CGImageRef image = CGImageSourceCreateImageAtIndex(source, 0, NULL);
CFRelease(source);
theView.layer.co
OK, I tried this:
NSURL *url = [NSURL fileURLWithPath:fname];
CGImageSourceRef source = CGImageSourceCreateWithURL((CFURLRef)url,
NULL);
CGImageRef image = CGImageSourceCreateImageAtIndex(source, 0, NULL);
CFRelease(source);
theView.layer.contents = image;
an
1 - 100 of 118 matches
Mail list logo