On 16/04/2011, at 4:40 PM, Roland King wrote:
> Where I'm getting the most time spent is in CGPathAddArc(), and this
> particular shape has a lot of them. My assumption here is that CGPathAddArc,
> which takes two angles, is having to calculate a bunch of trig functions of
> those and figure o
I am searching for the 'modern' way to define global shortcuts. I
searched for it and found all over the web, that the old Carbon API
should be used, because it's way more convenient than using NSEvent.
However the Carbon API for global shortcuts (RegisterEventHotKey) is
marked as 'Legacy'. I am n
Hi
Is it possible to resize a "custom" title-less window using any of
it's 4 corners?
I want to display a window with a hole inside (A window which looks
like a frame), and let the user to resize this frame using any of the
4 boundaries of such a frame.
Also i am wondering, if i could let the use
On Apr 16, 2011, at 7:44 AM, eveningnick eveningnick wrote:
> Is it possible to resize a "custom" title-less window using any of
> it's 4 corners?
>
> I want to display a window with a hole inside (A window which looks
> like a frame), and let the user to resize this frame using any of the
> 4 bo
On Thu, 14 Apr 2011 14:58:06 -0400, Jeffrey Walton said:
>The problem appears to be with the size of the M4V
I had trouble with this too, the first time I tried to use
MPMoviePlayerController. Consult the specs for the hardware first. For example,
here are the specs for an iPad 2:
http://www.a
On Sat, Apr 16, 2011 at 11:44 AM, Matt Neuburg wrote:
> On Thu, 14 Apr 2011 14:58:06 -0400, Jeffrey Walton said:
>>The problem appears to be with the size of the M4V
>
> I had trouble with this too, the first time I tried to use
> MPMoviePlayerController. Consult the specs for the hardware first
On Apr 16, 2011, at 2:59 AM, Florian Pilz wrote:
> However the Carbon API for global shortcuts (RegisterEventHotKey) is
> marked as 'Legacy'. I am not sure if thats the same as 'deprecated' in
> Apple terms
It's not.
> So my question is: Is the Carbon API still the way to go?
It is.
-eric
__
On Apr 16, 2011, at 9:00 AM, Jeffrey Walton wrote:
>
> For what its worth, Apple's sample [1] is broken - it can't even play
> the movie it supplies with its sample.
>
> Jeff
>
> [1]
> http://developer.apple.com/library/ios/#samplecode/MoviePlayer_iPhone/Introduction/Intro.html
That's a well
On Sat, Apr 16, 2011 at 12:39 PM, Matt Neuburg wrote:
>
> On Apr 16, 2011, at 9:00 AM, Jeffrey Walton wrote:
>
>>
>> For what its worth, Apple's sample [1] is broken - it can't even play
>> the movie it supplies with its sample.
>>
>> Jeff
>>
>> [1]
>> http://developer.apple.com/library/ios/#samp
On Sat, Apr 16, 2011 at 11:44 AM, Matt Neuburg wrote:
> On Thu, 14 Apr 2011 14:58:06 -0400, Jeffrey Walton said:
>>The problem appears to be with the size of the M4V
>
> I had trouble with this too, the first time I tried to use
> MPMoviePlayerController. Consult the specs for the hardware first
On Apr 16, 2011, at 5:44, eveningnick eveningnick wrote:
> How could i do it, if it's possible at all? And if not, maybe i could
> implement something very close using Cocoa facilities?
> Basically i need this, to make my application look as similar as
> possible to my Windows version.
While wha
On Apr 16, 2011, at 11:35 AM, Jeffrey Walton wrote:
> Format: ACV0 Media, 640x480, Millions, AAC (Protected), 2 channels, 44100 HZ
I'm 90% sure that it's the "(Protected)" part that prevents it from playing in
non-Apple created video players.
Eli
__
On Sat, Apr 16, 2011 at 12:39 PM, Matt Neuburg wrote:
>
> On Apr 16, 2011, at 9:00 AM, Jeffrey Walton wrote:
>
>>
>> For what its worth, Apple's sample [1] is broken - it can't even play
>> the movie it supplies with its sample.
>>
>> Jeff
>>
>> [1]
>> http://developer.apple.com/library/ios/#samp
On Sat, Apr 16, 2011 at 2:19 PM, Eli Bach wrote:
>
> On Apr 16, 2011, at 11:35 AM, Jeffrey Walton wrote:
>
>> Format: ACV0 Media, 640x480, Millions, AAC (Protected), 2 channels, 44100 HZ
>
> I'm 90% sure that it's the "(Protected)" part that prevents it from playing
> in non-Apple created video p
>While what you are asking for does not sound patently unreasonable, this last
>sentence should >almost never be the reason to make a particular design
>decision, especially when it comes to >deciding to implement non-standard
>controls, etc.
Your statement made me think about redesigning some
Seems to be an issue with CTLineGetTypographicBounds when calling it for a
single line.
Changing the code to below seems to fix the issue.
CGPoint origin[numberOfLines];
CTLineGetTypographicBounds(line, &ascent, &descent, NULL);
CTFrameGetLineOrigins(_frame, CFRangeMake(0, 0), origin);
I meant issue with CTFrameGetLineOrigins :)
George
On Sat, Apr 16, 2011 at 5:40 PM, Malayil George wrote:
> Seems to be an issue with CTLineGetTypographicBounds when calling it for a
> single line.
>
> Changing the code to below seems to fix the issue.
> CGPoint origin[numberOfLines];
>
>
Hi Ken,
first thank you for answering this question and previous times. I am
just very unfamiliar about what can i do and what i can't drowning in
documentation that's why i'm asking so many times. I managed to
display the "funky window", but the events were my problem. Thanks a
lot for the links.
On 16 Apr 2011, at 13:02, Eric Schlegel wrote:
> On Apr 16, 2011, at 2:59 AM, Florian Pilz wrote:
>
>> However the Carbon API for global shortcuts (RegisterEventHotKey) is
>> marked as 'Legacy'. I am not sure if thats the same as 'deprecated' in
>> Apple terms
>
> It's not.
>
>> So my question i
On Apr 16, 2011, at 2:57 PM, Bavarious wrote:
> On 16 Apr 2011, at 13:02, Eric Schlegel wrote:
>> On Apr 16, 2011, at 2:59 AM, Florian Pilz wrote:
>>
>>> However the Carbon API for global shortcuts (RegisterEventHotKey) is
>>> marked as 'Legacy'. I am not sure if thats the same as 'deprecated' i
On 16/04/2011, at 10:44 PM, eveningnick eveningnick wrote:
> Basically i need this, to make my application look as similar as
> possible to my Windows version.
Windows users use Windows. Mac users use Mac. And rarely the twain shall meet.
--Graham
After David Duncan explained dispatch_once() more clearly than the available
documentation, I thought I'd give it a second look. Among other things, I
wanted to replace my usage of @synchronized singletons, and dispatch_once()
seemed the perfect mechanism for that.
So, I put together the class
There are a whole bunch of ways to make singletons. Some are much more work
than others... Here's how I would modify your code:
// MySingleton.h:
#import
@interface MySingleton: NSObject {
NSUInteger someInteger_;
}
@property (nonatomic) NSUInteger someInteger;
+ (MySingleton*) sharedI
On Sat, Apr 16, 2011 at 8:04 PM, WT wrote:
> From the testing I've done - creating several threads, each invoking either
> [MySingleton sharedInstance] or [[MySingleton alloc] init] after a randomly
> selected sleep time, and running the test anew several times - it appears to
> behave correctl
Blah, typos.
On Sat, Apr 16, 2011 at 8:31 PM, Kyle Sluder wrote:
> dispatch_once(&once, ^{ sharedInstance = [[self alloc] init]; });
Should be [[[self alloc] init] autorelease].
> Rather than relying on -allocWithZone: to return the shared instance,
Of course it's +allocWithZone:.
--Kyle Slu
On Apr 16, 2011, at 4:57 PM, eveningnick eveningnick wrote:
> Could you give me a hint how did QuickTime Player developers manage to
> display a window the way it looks now? Specifically i can't
> understand, how they made the "Movie control" toolbar, that floats
> only within the "movie window"?
Hi Dave, thanks for replying.
On Apr 17, 2011, at 12:18 AM, Dave DeLong wrote:
> There are a whole bunch of ways to make singletons. Some are much more work
> than others...
The amount of work is of little concern for me in this case because the
singleton class will become a template like i
Hi Kyle, thanks for replying.
On Apr 17, 2011, at 12:31 AM, Kyle Sluder wrote:
> Do you really need a singleton, or just a default instance?
A singleton.
>> static MySingleton* stSharedInstance = nil;
>>
>> static dispatch_once_t stSharedInstanceInvoked;
>> static dispatch_once_t stAllo
On Apr 15, 2011, at 1:47 AM, Scott Anguish wrote:
> if (foundRange.location > 0) { // should be comparing to
> NSNotFound, but that failed miserably.
> newShootPath=[shootPath stringByAppendingString:@“-APPL”];
> // make sure I’ve not already done this
>
On Apr 17, 2011, at 12:20 AM, WT wrote:
> On Apr 17, 2011, at 12:31 AM, Kyle Sluder wrote:
>
>>> self class] alloc] init] autorelease];
>>
>> You are in a class method. self == [self class], so no need to call +class
>> here.
>
> What if I'm trying to subclass this singleton?
What a
I tried to reproduce your problem by creating directories ~/wtf/FromHere and
~/wtf/ToHere, with three files in FromHere named 1, 2, and 3. I switch over to
using "ToHere-NEW" when it detects a file whose name is >= "2".
My test code renamed the directory and switched over to it just fine:
- (vo
On 16 Apr 2011, at 13:44, eveningnick eveningnick wrote:
> Basically i need this, to make my application look as similar as
> possible to my Windows version.
A truely terrible idea!
Why on earth do you think Mac users use Macs? Don't you think if they wanted
everything to look and behave like
This is a truly strange question. If you interpret a singleton to be "one and
only one", then it doesnt make much sense to ask about subclassing it, because
that would imply that you could instantiate one of the base type and one of the
sub type, thus making it not fit the definition of a single
33 matches
Mail list logo