On Oct 13, 2010, at 7:16 PM, William Squires wrote:
Hi
What's the proper way to force an iOS device to set the orientation to one of
UIInterfaceOrientationLandscapeLeft
UIInterfaceOrientationLandscapeRight
UIInterfaceOrientationPortrait
UIInterfaceOrientationPortraitUpsideDown
?
So
On Oct 13, 2010, at 5:07 PM, Laurent Daudelin wrote:
I was just wondering, given the single choice of a default UIButton (when
compared to all the variations that you have in NSButton on OS X) what you
guys were doing whenever you need some kind of spiced up UIButtons. You're
rolling your
How do you create the popup (and scrollable) contextual style menus that are in
Safari's when you click the Bookmark / History button?
I can't find a prebuilt class in the UIKit that uses that specific behavior,
and find it amazing that there isn't one available.
At this point, I am guessing
Are UIGestureRecognizers allowed to be attached to individual CALayers within a
UIView layer hierarchy? I originally posted this to the quartz-dev list, but
it was recommended to ask here instead.
___
Cocoa-dev mailing list
I am keeping track of the number of times an object is accessed by key value
within a NSDictionary. I am using a manager type class where I request the
object from the manager, and it accesses the NSDictionary for the object,
therefore I am using a method such as this:
- (CGImageRef)
On Aug 13, 2010, at 4:14 PM, Greg Guerin wrote:
My question is basically how does NSCountedSet handle string values, are
they interpreted by their string values or by their object values? If they
are by object, then I need to do more work to pull the exact key object from
the
Reading up on the docs for both CGImage and UIImage, I see that there is a
scale property, but there doesn't appear to be any way to modify the scale
factor of an CGImage without resampling (and therefore changing the pixels).
Below is a comment from the UIImage.scale (property) read-only, and
I have a question about the oalTouch example project.
Specifically the sample code uses the exit( ) function after encountering an
error such as in the sample code below.
I looked up the OpenAL documentation for alGetError( ) and no where does the
OpenAL documentation for alGetError( )
On May 27, 2010, at 2:40 PM, Luke the Hiesterman wrote:
That is most likely there for simplicity of the code example. Since Touch is
in the name, I'm assuming this example is for iPhoneOS? If so, please
remember that exit() should never be called in an iPhone program. Only the
user should
On May 5, 2010, at 9:25 PM, Shripada Hebbar wrote:
I don't see any point in doing this on our own as the iPhone OS anyway gives
you memory warning when we are consuming too much of it, and this is the
right occasion to cleanup anything that is not needed ( in
On May 6, 2010, at 11:02 AM, David Duncan wrote:
I am trying to implement David Duncan's suggestion, but because I am dealing
with images and sound, its not clear how much memory is actually being used
(although worst case estimates can be made).
For images I would use a cost estimate of
I am designing a slightly smarter resource cache that purges less frequently
used resources instead of a purge all when getting an UIApplication delegate
applicationDidReceiveMemoryWarning: message. I know the target (currently)
is 20 MBs (although that could change with future hardware). The
Is my assumption correct that the CFUUID class only generates RANDOM UUID
values? (i.e. UUID version 4)
I am interested in creating a reproducible UUID based on a string input value
(such as UUID version 3 or 5), and this doesn't seem possible with CFUUID.
On Apr 28, 2010, at 12:49 PM, Douglas Davidson wrote:
Is my assumption correct that the CFUUID class only generates RANDOM UUID
values? (i.e. UUID version 4)
I am interested in creating a reproducible UUID based on a string input
value (such as UUID version 3 or 5), and this doesn't seem
On Apr 26, 2010, at 10:50 PM, Ken Thomases wrote:
No. The get prefix is used for return-via-pointer. For example,
-[NSString getCharacters:range].
As documented here
http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/CodingGuidelines/Articles/NamingMethods.html.
Assume that an array of images is loaded at the start of the app.
There are a number of views which will be displaying multiple copies of the
image, but they will be accessing the image array as a read-only property, and
I do not plan to have these views adjust the reference count for each
I am fairly new to Cocoa, and so I have 2 questions I would appreciate some
feedback. For a beginner, Cocoa suffers from the too much info problem and
its often difficult to find the answers to seemly simple questions. I have had
better luck learning from books, and have purchased the
On Apr 19, 2010, at 2:49 PM, Jens Alfke wrote:
Is there perhaps a way to create vector art paths in illustrator, and import
the data into xcode and use those paths in CG and stroke/fill them there?
Save the path as a PDF file, and then load and draw it as an image.
Would that make a opaque
I need to have a tab style interface, but am not able to use the built in
NSTabView because the style is not customizable. Basically I need something
similar in look to the Safari tabs, but on a VERTICAL direction. At this point
I am thinking about a custom NSView with CALayers for each tab
On Apr 8, 2010, at 8:22 AM, Gideon King wrote:
Absolutely. Use an NSTabView, but set it to be tabless, and create your own
control to change the selected tab.
My question isn't how to get the Tabs to work, but the control which controls
the tab switching. =)
I need to have a tab style
On Apr 7, 2010, at 10:31 AM, Laurent Daudelin wrote:
Is there an easy way to download the whole package? I looked around and
besides downloading each item individually, I didn't see anything like a dmg
or zip or svn link.
At the far top-right, there is a button labeled Get Source which lets
On Apr 7, 2010, at 4:46 PM, Fritz Anderson wrote:
Given that the article's title and opening paragraph suggest that it's about
something pretty elementary, and site wants a free registration to show you
any more, I'd like to hear from people who have read the whole thing whether
On Apr 6, 2010, at 7:06 PM, Henry McGilton wrote:
There's no NSBezierPath parallel on the phone, so you get down into Core
Graphics a lot more than with Appkit.
iPhone 3.2 SDK just added UIBezierPath, but the 3.2 OS will only run on iPad
right now. Who knows if the iPhone will ever run 3.2
I am wanting to perform a runtime check to see if a particular C function
exists. While in this particular case, the C function I want to use is only
available as part of 10.6 SDK (there are examples of this in archives), but I
want to know if there is a runtime method similar to @selector
On Mar 28, 2010, at 10:42 AM, mmalc Crawford wrote:
That would be gut for the fact that my fields are released and set to nil
whenever a new SELECT query is executed - however, I think I can do this by
emptying the array when a new query is done and just counting the size of
the array in
On Mar 26, 2010, at 1:23 AM, Alec Stewart wrote:
This compiler warning 'NSDate' may not respond to
'+dateWithTimeInterval:sinceDate:' is driving me up the wall.
I don't understand why I am getting the warning because, by all indications,
+dateWithTimeInterval:sinceDate: has not been
26 matches
Mail list logo