Hello,
In my app I need to determine if some app if properly codesigned. To do this I
just invoke "/usr/bin/codesign" and analyse return value. To invoke it I use
NSTask and launch it in background thread. Everything works fine excepts
strange crash I get sometimes from our customers. While NST
I'm trying to debug something in an iPad app with very limited information and
hoping that the symptoms will ring a bell with someone. This is based on a
report from one user and is nothing I've been able to reproduce.
I have a UIViewController subclass that shows a UIWebView and is also its
On Apr 26, 2011, at 6:37 AM, Phillip Mills wrote:
> I'm trying to debug something in an iPad app with very limited information
> and hoping that the symptoms will ring a bell with someone. This is based on
> a report from one user and is nothing I've been able to reproduce.
>
> I have a UIVie
On 2011-04-26, at 8:52 AM, Jeff Johnson wrote:
> You can get this "error" when the page automatically redirects via
> Javascript. I would recommend just ignoring the error, treating it as a
> non-error condition.
I'm coming around to the idea that your solution is the right one. However, in
t
On Apr 26, 2011, at 8:02 AM, Phillip Mills wrote:
> On 2011-04-26, at 8:52 AM, Jeff Johnson wrote:
>
>> You can get this "error" when the page automatically redirects via
>> Javascript. I would recommend just ignoring the error, treating it as a
>> non-error condition.
>
> I'm coming around to
On Mon, 25 Apr 2011 12:47:34 -0600, koko said:
>I haven't found sample code (if someone can point me to an example) ...
>
>A current Windows app utilizes three pop up lists for the user to make a
>selection
>
>List 1 is the macro selection
>List 2 and List 3 refine the selection
>
>The combinatio
On Tue, 26 Apr 2011 01:19:48 -0400, Jeffrey Walton said:
>It sure would have been helpful if viewWillDisappear was sent as
>documented. When the home button is pressed, and the home screen is
>presented, the view has clearly disappeared (no offense Alex).
Listen to what you're being told. The sig
On Tue, 26 Apr 2011 10:08:50 +0530, Sasikumar JP said:
>Hi,
> I am working on streaming audio player application for iOS. currently i am
> experimenting with AudioQueue and AudioUnit for playback.
>
>Both works fine in the normal condition. But AudioUnit playback stopped
>playing when device (i
You're thinking of kAudioUnitProperty_MaximumFramesPerSlice
(http://developer.apple.com/library/ios/#qa/qa1606/_index.html). You have to
set that to 4096 frames per slice for every audio unit that's not the remoteIO
unit.
Hank
On Apr 26, 2011, at 11:05 AM, Gregory Wieber wrote:
> In the iOS d
I've found different ways to do that (some pure Cocoa, some using Carbon) but I
was wondering about the wisdom of this list as to what is the best way to
detect the encoding of a file before passing it to NSString
initWithContentsOfFile:encoding:error:?
-Laurent.
--
Laurent Daudelin
AIM/iChat/
You'd have to guess (by reading the first few bytes of the file, seeing what
they are and how they're laid out, etc), or use the
initWithContentsOfFile:usedEncoding:error: variant to let NSString guess for
you.
Dave
On Apr 26, 2011, at 11:13 AM, Laurent Daudelin wrote:
> I've found different
Obviously, there are sometimes overlaps between encodings when you're
trying to guess.
http://en.wikipedia.org/wiki/Bush_hid_the_facts
-Heath Borders
heath.bord...@gmail.com
Twitter: heathborders
http://heath-tech.blogspot.com
On Tue, Apr 26, 2011 at 1:18 PM, Dave DeLong wrote:
> You'd have t
On Apr 26, 2011, at 12:13 PM, Laurent Daudelin wrote:
> I've found different ways to do that (some pure Cocoa, some using Carbon) but
> I was wondering about the wisdom of this list as to what is the best way to
> detect the encoding of a file before passing it to NSString
> initWithContentsOf
On Apr 26, 2011, at 11:43, Nick Zitzmann wrote:
> On Apr 26, 2011, at 12:13 PM, Laurent Daudelin wrote:
>
>> I've found different ways to do that (some pure Cocoa, some using Carbon)
>> but I was wondering about the wisdom of this list as to what is the best way
>> to detect the encoding of a f
On Apr 26, 2011, at 12:49 PM, Laurent Daudelin wrote:
>> TextEdit's encoding guesser just uses the built-in NSAttributedString method
>> -initWithURL:options:documentAttributes:error:, which will guess the file's
>> encoding when opening it. But it has been mentioned that heuristics are not
>>
Hi Laurent-
I have an app that collects a lot of text off the web; my string creation
algorithm is something like the following:
1. Attempt to create an NSString with NSUTF8StringEncoding.
2. If the string is nil, attempt to create the string using the encoding
returned from the server.
3. I
Another battle tested piece of code would be Mozilla's sniffer, if external
libraries and it's license suit you.
This document is out of date, bur explains the ideas.
http://www.mozilla.org/projects/intl/detectorsrc.html
On Apr 26, 2011, at 3:39 PM, John Pannell wrote:
> Hi Laurent-
>
>
Laurent Daudelin wrote:
I've found different ways to do that (some pure Cocoa, some using
Carbon) but I was wondering about the wisdom of this list as to
what is the best way to detect the encoding of a file before
passing it to NSString initWithContentsOfFile:encoding:error:?
You might
What is the blessed method for displaying a UIPickerView when a button in
another view is clicked.
1. Use UIAlert - easy but seems clunky
2. Use a complete new view
3. Use a view in a layer of the current view
"jus askin'"
-koko
___
Cocoa-dev mai
Many things into consideration.
1. will you give a UI feedback with a "slide-in" animation?
2. will come form bottom? (normally it does if occupies the whole with).
3. will the button that trigger the picker be used to dismissed it?
But coming to your question, I will opt for 3 but adding the uipi
So we have one vote for:
3. Use a view in a layer of the current view
Any other views (no pun intended) ... going once going twice
Any comments against :
1. Use UIAlert - easy but seems clunky
-koko
On Apr 26, 2011, at 3:16 PM, Gustavo Pizano wrote:
> Many things into consideration.
On Apr 26, 2011, at 4:36 PM, koko wrote:
> So we have one vote for:
>
> 3. Use a view in a layer of the current view
>
> Any other views (no pun intended) ... going once going twice
>
> Any comments against :
>
> 1. Use UIAlert - easy but seems clunky
>
> -koko
Adding additional cont
Someone over on StackOverflow mentioned he had written a custom class to
present a UIPickerView (or a UIDatePickerView) in a UIActionSheet that
slides up from the bottom of the page, and was making the code available on
Github. Don't have the URL handy right now, but should be easy enough to
find.
I should have been more specific ... this is for an iPhone app which to me says
UIPickerView cannot be visible always because of it ponderous size.
-koko
On Apr 26, 2011, at 3:51 PM, glenn andreas wrote:
>
> On Apr 26, 2011, at 4:36 PM, koko wrote:
>
>> So we have one vote for:
>>
>> 3.
Could you put it in the same view out of visual view and scroll the view up
when it's needed?
Eric
Sent from my iPhone
On Apr 26, 2011, at 6:09 PM, koko wrote:
> I should have been more specific ... this is for an iPhone app which to me
> says UIPickerView cannot be visible always because of
Thanks, John. I'll have a look and let you know if I need more help!
-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin
http://www.nemesys-soft.com/
Logiciels Nemesys Software
laur...@nemesys-soft.com
On Apr 26, 20
On Apr 26, 2011, at 2:51 PM, glenn andreas wrote:
>
> On Apr 26, 2011, at 4:36 PM, koko wrote:
>
>> So we have one vote for:
>>
>> 3. Use a view in a layer of the current view
>>
>> Any other views (no pun intended) ... going once going twice
>>
>> Any comments against :
>>
>> 1. Use
Hank,
I have tried with by setting "kAudioUnitProperty_MaximumFramesPerSlice"
property as 4096 for Mixer and EQ Audio Units. Now audio playback did not stop
when the device goes to sleep mode.
But i hear glitches along with Audio.
I have looked at apple sample code MixerHost. it play
I believe Audio units need 44100 Hz, but I'm not sure about that. Regardless,
decoding mp3 with an AudioConverter should not introduce any glitches at that
rate - any iOS device should be able to handle that without issues.
The 4096 is the right value for any iOS device. Without seeing your code
Hank,
I have included the key methods which decodes and renders the audio
data.
i uses the following structures to hold the data
typedef struct
{
UInt32 mDataByteSize;
UInt32 mNumOfPackets;
UInt32 mPacketOffset;
UInt32 mNumOfChannels;
UInt32 mBytesPerPacket;
char *
I though I was following a good example ... I do not get the results I expect.
I have a view controller.
To this I have added a second view and wired it up through its IBOutlet.
In viewDidLoad:
[[self view] addSubview:m_projectSelector];
m_projectSelector.hidden=NO;
When the parent view is hidden, all the stuff contained in it will be invisible
as well. So you might like to try sibling views instead of hierarchical views?
-ev
On Apr 27, 2011, at 10:35, koko wrote:
> I though I was following a good example ... I do not get the results I expect.
>
> I have
Duh! Thanks for hitting me in the head ... When the parent view is hidden, all
the stuff contained in it will be invisible as well
-koko
On Apr 26, 2011, at 8:39 PM, Evadne Wu wrote:
> When the parent view is hidden, all the stuff contained in it will be
> invisible as well. So you might li
Please don't crosspost. coreaudio-api was the more appropriate list to post to.
--Kyle Sluder
On Mon, Apr 25, 2011 at 9:38 PM, Sasikumar JP wrote:
> Hi,
> I am working on streaming audio player application for iOS. currently i am
> experimenting with AudioQueue and AudioUnit for playback.
>
>
I am currently learning objective c and cocoa
I believe I understand the difference between properties and instance
variables, and the effect of using properties as opposed to instance
variables viz a viz KVO and memory management.
What I can't understand is why you would access instance variable
Speed is generally not something to be concerned about WRT property accessors.
If you want to bypass the property accessor behavior when accessing an ivar,
then access it directly.
Somewhere in Apple's docs I read a suggestion that IBOutlets be released in
-dealloc by direct access, and release
On Apr 26, 2011, at 8:28 PM, Guy Steven wrote:
> I am currently learning objective c and cocoa
>
> I believe I understand the difference between properties and instance
> variables, and the effect of using properties as opposed to instance
> variables viz a viz KVO and memory management.
A prope
On Tue, Apr 26, 2011 at 9:07 PM, Steve Christensen wrote:
> I believe it's only necessary if you want to do a straight "@synthesize
> foo;", which would expect the instance variable to have the same name as the
> property.
And it's worth mentioning that you can always do @synthesize foo=_foo;
t
On Apr 26, 2011, at 20:28, Guy Steven wrote:
> I believe I understand the difference between properties and instance
> variables, and the effect of using properties as opposed to instance
> variables viz a viz KVO and memory management.
>
> What I can't understand is why you would access instance
I'm adding some Core Animation to my existing project, and I'm encountering
some differences in the font rendering compared to non-Core Animation code.
Here's the code used to draw my strings:
> NSShadow *selectedShadow = [[NSShadow alloc] init];
> [selectedShadow setShadowOffset:NSMakeSize(0,-
I know that there are slot of barcode scanners in the app store. I am needing
one for a particular purpose and have not found one yet that capable of the
features I need. I work for a small company that is expanding rapidly right now
and we are having issues with keeping PC's in order. We have
Hello,
Is there a well-known way (or a library) to keep a stack (or queue) of sheets
per window?
I'm a developer of Gitbox - a git repository manager. It keeps several repos
opened and periodically updates them. If some repos require authentication, a
modal dialog pops up. I'd like to clean u
On Apr 26, 2011, at 11:55, Oleg Andreev wrote:
> 2. Is it a good way to solve the problem? Maybe I miss some subtle issues
> with AppKit or user experience.
I'd say the difficulty with this approach is that, at any given moment, there
may be a stack of dialogs (of fairly critical importance) bu
On Apr 26, 2011, at 2:55 AM, Vera Tkachenko wrote:
> In my app I need to determine if some app if properly codesigned. To do this
> I just invoke "/usr/bin/codesign" and analyse return value. To invoke it I
> use NSTask and launch it in background thread. Everything works fine excepts
> strange
This is a wild guess but it worked for me with Core Text on the iPad a long
time ago. One or several of these can probably work for you.
• CGContextSetAllowsAntialiasing
• CGContextSetAllowsFontSmoothing
• CGContextSetShouldSmoothFonts
• CGContextSetAllowsFontSubp
45 matches
Mail list logo