ourself, where you can have control over
the process.
--
David Duncan
___
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
ould allow you to avoid -drawRect: entirely, which would allow you to animate
the background color and may offer some memory usage benefits (if you can use
subviews).
--
David Duncan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do no
atching the "Dirty Size" statistic is what you are interested in here.
--
David Duncan
___
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
ng it faster to draw?
It sounds like you nave needsDisplayOnBoundsChanged=YES, I would recommend you
set it to NO, and call -setNeedsDisplay on your layers manually when the
resizing is done.
--
David Duncan
___
Cocoa-dev mailing list (Cocoa-dev@lists.appl
is slightly off from the DPI of the target is more likely to look bad than one
that is significantly smaller if only because the resampling will distort the
image more.
--
David Duncan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Ple
> string?
I think in this case it is necessary to understand why you want to do this, as
it is highly likely to inform the approach that you should use. As an example,
removing all Unicode characters from a string would invalidate characters such
as ä, and which could change meanings or ide
on with a crossfade animation.
This is probably a better alternative.
--
David Duncan
___
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-
Is the contentsScale property set correctly? For CALayers it defaults to 1.0,
UIKit ensures that it is set correctly for layers that it creates, but it is
your responsibility to do this for layers that you create yourself.
--
David Duncan
On Jul 11, 2010, at 4:03 PM, Carter Allen wrote:
>
There is a certain question of "why?" in this, but I think the answer is that
you should use the various control events that are exposed for
-addTarget:action:forControlEvents:. By doing so you can get action messages
for basically every touch interaction without needing to subcla
en. The docs describe the order that the auto
rotation methods are called in and what has happened at each step.
--
David Duncan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
s can be useful when you have a process which creates lots of
objects that are otherwise short lived, but your particular case doesn't have
that, since all of these objects end up being referenced, directly or
indirectly, via the 'list' object.
--
David Duncan
port 32-bit with this project).
--
David Duncan
___
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/
ate
> all the time. A SIGKILL without applicationWillTerminate seems kind of
> rude :(
Is there any reason you can't save your state once you enter the background
instead?
--
David Duncan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do
via some method that relies on filename, it is probably best
to use arbitrary file names and use whatever the user gives you as a document
title instead.
--
David Duncan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin re
some kind of API?
You can use NSScreen to get a list of available screens and then just create an
NSWindow on whatever screens you want. You probably want a borderless window
(which is a flag you can pass when you create the window) so that the window
doesn't have content by default.
--
David Du
depends on what you mean by making OpenGL work with AVPlayerLayer. What
are you trying to do?™
--
David Duncan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact th
model layer still is). If
setting the bounds fixes that, then that is the likely cause.
--
David Duncan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderator
t; seem to invert. If I open that PDF in Preview.app it looks the same, all jpeg
> images are inverted (looks like a film negative). Anybody have a idea on what
> is causing this and how to work around it? Thanks Dean
Are these JPEG's perhaps CMYK? Either way you should file a
hink it does, but I
haven't used it well enough to know for certain)
Basically a CAEAGLLayer is a cross-over point from Core Animation to OpenGL.
Other Core Animation content doesn't interact with the content of a CAEAGLLayer
anymore than the content of any single CALayer intera
y causing the view to
reload, typically by referencing it via self.view.
--
David Duncan
___
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-ad
t;> });
>>>
>>> return bah;
>>> }
Fundamentally however, this will not work. If you want to do lazy
initialization of a variable with thread safety then you should use
dispatch_once() to initialize the variable. This is also not somet
ecutes
the block. If the flag is true, it does nothing. What makes dispatch_once
useful over a simple if statement is that it ensures that if you execute
dispatch_once concurrently from multiple threads that flag gets updated exactly
once, and the block gets called exactly once.
--
D
On Apr 14, 2011, at 10:26 AM, WT wrote:
> On Apr 14, 2011, at 2:09 PM, David Duncan wrote:
>
>> On Apr 14, 2011, at 10:02 AM, WT wrote:
>>
>>> I looked at dispatch_once() at one point, but I'm still confused by how it
>>> works.
>>
>> disp
ublayer. At a higher level however, you could do the exact same thing with
UIViews and use UILabel for your labels (which since they do less work for text
layout are generally faster).
--
David Duncan
___
Cocoa-dev mailing list (Cocoa-dev@lists.
onscreen, so the text would ideally somehow be embedded within the
> circle objects so they could track together. Would it make sense to have a
> parallel CATextLayer associated with each CALayer in my circle object? Or
> does CAShapeLayer have that capability?
>
>
> From: Da
ation to the layer that auto-reverses and repeats indefinitely, which
would likely give you the same effect without having to run a timer at all.
--
David Duncan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or mo
n how you feel about it, it can either be a complex or fun game to
see what you can do with animations to get an effect by itself )
--
David Duncan
___
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 Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/david.duncan%40apple.com
>
> This email sent to david.dun...@apple.com
--
David Duncan
_
lity I can
think of is that you are using different compilers that are optimizing
differently *and* that you are using Garbage Collection (which you allude to
when you set various values to nil). But if you aren't using GC, then I have no
idea (and setting the values to nil has no effect ei
"self->foo" identically to _foo and
self->_foo above.
--
David Duncan
___
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
he section on view controller containment (spoiler alert: what you
are doing is not supported). If you want to be able to load arbitrary views
from nibs to add to a view managed by a view controller, the recommendation is
to use an NSObject subclass to own the view and UINib to
On May 4, 2011, at 4:50 AM, Brian Bruinewoud wrote:
> Question is: Why doesn't the Nothing button animate in all calls to the
> method?
Only thing I can think of is self.nothingButton == nil.
--
David Duncan
___
Cocoa-dev mailing list
__
>
> 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 Subscrip
s typically indicate that you forgot to link a
necessary framework, in this case QuartzCore.framework.
--
David Duncan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact th
y cannot optimize away the comparison to NO after the comparison to YES,
because it cannot guarantee that the value you are comparing against isn't a
value other than YES or NO in most cases.
--
David Duncan
___
Cocoa-dev mailing list (Cocoa-dev@lists
iVars for later use.
There should be no actual restriction like that however. That said, as you
point out, if you have view that supports layers and come from a nib, you often
have to duplicate work to allow it to work in both situations.
--
David Duncan
_
On May 17, 2011, at 9:49 AM, Bill Cheeseman wrote:
> On May 17, 2011, at 11:33 AM, David Duncan wrote:
>
>> There should be no actual restriction like that however. That said, as you
>> point out, if you have view that supports layers and come from a nib, you
>> often h
ention, including things
that you cannot easily (if at all) replicate.
--
David Duncan
___
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(
until you get one your memory usage will
keep growing and growing.
--
David Duncan
___
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
Controller orientation callbacks (see the documentation for
details) or by implementing -layoutSubviews on relevant views in your view
hierarchy.
--
David Duncan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or
27;t be necessary. A bug report would be good here.
--
David Duncan
___
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.c
e wonder how your view controllers are laid out. I don't suppose
you added the contents that are having trouble by taking a view from one view
controller and adding it as a subview to a view owned (directly or indirectly)
by another view controller?
--
David Duncan
___
ed 2 minutes into the sequence and relatively rare. The only
reason I could reasonably debug the issue like this was because I had control
over the sequence of numbers that I was seeing.
--
David Duncan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com
tual/iPhone101/Articles/00_Introduction.html>
which steps you through a simple iOS application.
--
David Duncan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderat
e by then (presumably you just cancel the timer if you
do) then you cancel the connection attempt and declare that the connection
timed out. No need for additional connections.
--
David Duncan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please
On Jun 2, 2011, at 11:16 AM, Nathan Sims wrote:
> On Jun 2, 2011, at 10:36 AM, David Duncan wrote:
>
>> On Jun 2, 2011, at 10:31 AM, Jim Adams wrote:
>>
>>> Why? Because the timeout was inordinately long with no way to shorten it
>>> other than create my ow
uch there isn't a way to do what you are trying to
accomplish with a single path. Instead I would recommend you use another
MKOverlay to designate the end of the path.
--
David Duncan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please
t you get from setting the
autoresizing masks in a particular way.
--
David Duncan
___
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.a
;
>
>CGContextMoveToPoint(context, pointA.x,pointA.y); //start at this point
>
>CGContextAddLineToPoint(context,pointB.x, pointB.y); //draw to this point
>
>// and now draw the Path!
>CGContextStrokePath(context);
What is pointA & pointB? What is self.st
al to the view
>
> On Jun 6, 2011, at 2:37 PM, David Duncan wrote:
>
>> On Jun 6, 2011, at 2:31 PM, Development wrote:
>>
>>> I'm really loosing faith in my ability to read simple english
>>>
>>>
>>> According to like a million
done on iOS. You should still get standard antialiasing however.
--
David Duncan
___
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.a
s, but the mobile GPU doesn't do as nice a job as the
one on your desktop machine).
It may make more sense to take this from a different angle, for example why do
you need a bitmap context in the first place and why does it need to be larger?
There may be better way
aked.
It is up to you to then follow the lifetime of that object to discover why it
was leaked.
The method at hand looks good, so it is most likely that the caller or one of
its callers has failed to correctly manage the memory.
--
David Duncan
__
, e.g. the CIRandomGenerator filter
>> composited onto an image filled with the base color?
>
> I've got the random noise part working and it easily fast enough. Its a shame
> there isn't a way to specify the opacity when drawing CGLayers. I'
– just also set the delegate of the web view
at that point.
--
David Duncan
___
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
e sounds of it, you also have
a border and the cornerRadius set to a non-zero value. If you want to disable
those animations too, you need to disable them for those associated keys too.
Or you can use the CATransaction as you originally tried, but you need to do it
around the values that you are
lled, so if you don't do it in -dealloc also, you can still have a
case where you get a delegate callback, but have an incomplete UI (depending on
what you are doing it may not crash, but you would then not see the results
either).
--
David Duncan
__
orientation, us
the interfaceOrientation property on your view controller.
That said, why layout that way at all? Why not base your layout on the views
bounds instead?
--
David Duncan @ My iPhone
On Jun 26, 2011, at 11:39 AM, Tales Pinheiro de Andrade wrote:
> Hi.
>
> I have a f
layout based on the size of the containing view? You can locally
determine if it is a portrait or landscape view by comparing width & height in
many cases.
--
David Duncan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post a
to it, and then assign all of the filters you used
to generate that CIImage to the layer. In the case you outline however, there
is no advantage to be had – just assign the CGImageRef to the CALayer's
contents and you are likely to be as opti
his:
UIKit doesn't promise that any of the properties it exports are KV observable.
I would recommend you use a different method to observe changes in the
transform.
--
David Duncan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please d
. layer only shows 200x200 area (keep low resolution)
Call -setNeedsDisplay on the layer.
--
David Duncan
___
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 c
elp
to ask to draw into a rectangle X+6 points wide – you need the label to be X+6
points wide.
--
David Duncan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderat
no effect on the size of that content (but the content
should be fitted to the layer according to its contentsGravity).
>
> Takashi Mochizuki
>
> On 2011/07/13, at 0:34, David Duncan wrote:
>
>> On Jul 8, 2011, at 11:33 PM, Takashi Mochizuki wrote:
>>
>>> De
nsure that autoreleased objects don't pile up on you. You can retain the
iNeedThisString to ensure it survives the pool if necessary.
--
David Duncan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or
this for? There is almost certainly a better solution
than knowing this, especially since it is likely that you can't know this
reliably.
--
David Duncan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests o
in the debugger tab…
> With Xcode 3, the last file I was editing was the one directly below the
> debugger window…
Feel free to report a bug asking for new tabs to be opened next to the current
tab instead of at the end of the tab list (assuming that is what you want).
--
David Duncan
On Jul 24, 2011, at 4:08 PM, Karl Goiser wrote:
> Hi David,
>
> On 25/07/2011, at 8:44 AM, David Duncan wrote:
>
>> On Jul 24, 2011, at 3:34 PM, Karl Goiser wrote:
>>
>>> So, I tried the trick with behaviours, assigning debugging to a special
>>> t
seeing exactly how you are laying out your layers, my recommendation
would be to add more layers :). To your root layer, add the replicator layer
and the text layer, and then add the rest of your content to the replicator as
you already do. By having the text layer order after the replicator laye
a CALayer already (zPosition should be
usable as a way to order layers, but sublayer order is generally better). If
you use a CATransformLayer, or a CAReplicatorLayer with preservesDepth=YES then
you are effectively asking Core Animation to act more like a textured quad
renderer. See the CA
_bounds to get
> bounds of window window_number") are returned ({1920, 106, 3200, 906}).
This is probably a holdover from the classic Mac OS days when rectangles were
described as left/top/right/bottom. Core Graphics describes rectangles as
left/top/width/height instead, which is what you a
On Jul 27, 2011, at 10:02 AM, Dan Hopwood wrote:
> This works really well and is exactly what I am looking for however a little
> reading tells me Apple may reject submissions that use this private API.
Yes, you will be rejected for using private API.
--
David
ways be an object type, it would
be at least of type id. And of course, its purpose is spelled out clearly from
the documentation :).
--
David Duncan
Apple DTS Animation and Printing
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post
Your modifying an array that is being enumerated, which is illegal.
--
David Duncan @ My iPhone
On Nov 30, 2009, at 2:23 PM, Matt Neuburg wrote:
To remove all sublayers from a layer, it is sufficient to set that
layer's
sublayers property to nil, so this code is completely unnece
anchorPoint is in a unit coordinate system. When you specify a point
outside of that system, the results are undefined.
Specify something between 0,0 and 1,1.
--
David Duncan
Apple DTS Animation and Printing
___
Cocoa-dev mailing list (Cocoa-dev@lists.a
On Dec 5, 2009, at 12:02 AM, Zephyroth Akash wrote:
> How do I get the class-code definition of a motherboard controller ?
The first question that comes to mind is what do you need to know this
information for? Knowing would give us some idea of how to direct you further.
--
David Dun
or not, is this possible using the AudioToolbox framework, or any
> other apple framework?
You would have a better chance of getting an answer on the CoreAudio-API list.
--
David Duncan
Apple DTS Animation and Printing
___
Cocoa-dev maili
. Specifically, you
probably aren't claiming ownership of the NSData object that you store in your
instance variable, and thus it is being deallocated out from under you.
--
David Duncan
Apple DTS Animation and Printing
___
Cocoa-dev mailing list (Co
t; why o why is it failing?
My understanding is Quicklook plugins are not allowed to make network
connections due to sandbox restrictions.
--
David Duncan
Apple DTS Animation and Printing
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not
ng depends on the state of certain
> elements of the filesystem which is maintained in a separate server process.
If the process is local you might try Unix domain sockets.
Overall, you might have a better chance of getting help with this on
Quicklook-dev, or perhaps Darwin-dev (for the sandb
pe layer's path? I'm not certain that
is trivial. Does the shape layer have an associated view (i.e. did you subclass
UIView to override +layerClass)? If so you could use that associated view.
Otherwise you can use the layer's -hitTest: method to determine which layer was
hit.
that. CAShapeLayers
> have hitTests? I haven't seen code like that anywhere yet (Google). Any help
> appreciated.
CAShapeLayer is a subclass of CALayer, and CALayer provides -hitTest:. However,
I'm fairly certain that it is based on the layer's geometry (position, bounds,
tran
ot hit
}
--
David Duncan
Apple DTS Animation and Printing
___
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/Unsub
ntroller in IB
> otherwise I can't change UINavigationBar class/instance, this makes sense?
> I'm forced to use IB?
Since we've come around to "file an ER" then an appropriate question seems to
be what are you trying to accomplish by subclassing the UINavigationBar?
--
If you don't turn GC on, then you likely don't have it on. Check your
project settings, as most if the project templates do not enable GC.
--
David Duncan @ My iPhone
On Dec 8, 2009, at 3:52 PM, Henri Häkkinen
wrote:
On Dec 8, 2009, at 6:42 PM, David Duncan wrote:
More t
27; was an instance of UIView. I was wrong. Thats what the
error is telling you :).
--
David Duncan
Apple DTS Animation and Printing
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the li
rinting to a cups printer from cocoa. or over bonjour?
What are you trying to do? Typically issue such as browsing and adding printers
is done at a much higher level by the user and applications can generally be
ignorant of how this all works (or if a printer is even connected to the
syste
ng for it.
--
David Duncan
Apple DTS Animation and Printing
___
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
.com/java/water.html
>
> essentially, i'd like to replicate this, or something similar, using a
> UIImage and touch methods. how difficult will this be?
You probably can't do this in realtime with a UIImageView on current devices
(unless your image was very small). You would probably
e here:
<http://developer.apple.com/iphone/library/samplecode/Reachability/index.html>
--
David Duncan
Apple DTS Animation and Printing
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to t
replace APIs usually leads to people asking "What are you trying
to do?"
So... what are you trying to do? :).
--
David Duncan
Apple DTS Animation and Printing
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin r
t; On Dec 14, 2009, at 2:28 AM, Gerriet M. Denkmann wrote:
>
>> So: is this a bug (eventually to be fixed) or a feature, which all users of
>> the Thai language have to find some workaround themselves?
--
David Duncan
Apple DTS Animation and Printing
__
d possibly embellish, and you should
send it on its way ([super sendEvent:]) before you do anything else.
And whatever else you do, make sure your quick with it, because -sendEvent:
gets called a LOT.
--
David Duncan
Apple DTS Animation and Printing
__
h the x86_64 architecture it screwed
> up the app.
Xcode lets you set the architecture to execute, and projects brought forth from
earlier versions/OSes typically have a 32-bit target set as the architecture to
execute. New projects in Xcode 3.2/Snow Leopard should have x86_64 set as their
treats patterns just like colors.
--
David Duncan
Apple DTS Animation and Printing
___
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
ing a new image context,
drawing the image with shadow, assigning that image to a UIImageView).
What didn't work about that?
--
David Duncan
Apple DTS Animation and Printing
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do
citly asking to draw outside of that original image.
--
David Duncan
Apple DTS Animation and Printing
___
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 co
of your hard
disk or home folder (whereas on hardware you have to put it in your documents
folder and then download it). Doing so would tell you if your drawing is doing
what you want and help you figure out where the actual problem is.
--
David Duncan
Apple DTS Animation and Printing
ew or
UIImagePickerController.
--
David Duncan @ My iPhone
On Dec 23, 2009, at 2:19 PM, Charlie Dickman <3tothe...@comcast.net>
wrote:
In an iPod Touch/iPhone app where the view is in 1 xib and it's
controller is in a different one, according to the view-controller-
data paradigm, is there a be
o implement this class to the same function, then you should
probably abstract them all into a common framework that all of these plugins
load instead.
--
David Duncan
Apple DTS Animation and Printing
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple
301 - 400 of 1008 matches
Mail list logo