On 31 dec 2009, at 08.14, Bengt Nilsson wrote:
> I need to draw a cross-hair on top of a QTCaptureView with a video preview
> from a USB camera.
> For this app, I am starting from the sample project QTRecorder.
> I create the cross-hair line in the Interface Builder.
> Problem is that the video
The autosizing mask doesn't seem to help. To clarify the problem, the device is
in landscape mode, the title bar is shown in landscape. The view is not drawing
from left to right (480 pixels across), but rather from top to bottom (480
pixels down causing the rendering to go off screen). It's as
Ian,
Are you saying that the view is drawing in the proper orientation but it isn't
filling the width of the landscape display? If this is the case, I would have
a look at the autoresizing mask settings for the problematic view(s).
--
Tony Ingraldi
http://www.majestysoftware.com/
Old-f
I can't comment on the specifics of this because I am not
knowledgable in that area, but the fact the undo manager is
getting it's knickers in a twist is surely unrelated to the fact
_releaseUndoManager was called from [NSDocument dealloc]. I do
all sorts of things in dealloc methods. I just
I need to draw a cross-hair on top of a QTCaptureView with a video preview from
a USB camera.
For this app, I am starting from the sample project QTRecorder.
I create the cross-hair line in the Interface Builder.
Problem is that the video is always on top, overwriting the cross-hair lines.
Is ther
Hi,
with
ps = ABPerson.alloc.initWithVCardRepresentation(data) # MacRuby syntax
;-)
the generated person is added automatically to the AdressBook database, in
opposite to:
ps = ABPerson.alloc.init # not added
ABAddressBook.sharedAddressBook.addRecord(ps) # now it is
The documentation says:
"The format for an accessor method that returns a property is -. The
- method returns an object, scalar or a data structure. The alternate
naming form -is is supported for Boolean properties."
A small number of test suggest -is is supported more generally.
Elsewhere, the
In my braille app, the font "Apple Braille" looks kind of wimpy when
printed. Some people say it's hard to read. I thought I'd try making it
bold, but for some reason, Apple Braille does not go bold in any app I've
tried.
Okay, so maybe there isn't a bold variant of the braille font installed. So
On 01/01/2010, at 11:30 AM, Graham Cox wrote:
> It's straightforward enough to change the behaviour to not retain the target
> - call -retainArguments before setting the invocation's target. I will add a
> method on GCUndoManager so it can be set to retain its targets or not.
I've sent you an
I am developing an application which has several views. All of which need to be
viewed in landscape mode. I set the UIInterfaceOrientation property to
UIInterfaceOrientationLandscapeLeft in the pList. Also overridden the following
method:
-
(BOOL)shouldAutorotateToInterfaceOrientation:(UIInter
On 01/01/2010, at 4:36 AM, Jerry Krinock wrote:
> Does a better workaround pop into anyone's mind? The crash does not occur
> when using Apple's NSUndoManager, which I presume must also have some
> workaround built into it.
Jerry,
Obviously there's a Mea Culpa in here for GCUndoManager.
I
On 01/01/2010, at 5:14 AM, Joshua Garnham wrote:
> So would this work?…
> NSMutablePargagraphStyle *paragraphStyle;
> [paragraphStyle setLineSpacing:spacing];
No - you haven't allocated/inited the paragraphStyle object, nor initialised
the variable. Most probably this will crash. Also, there's
On Dec 31, 2009, at 15:21, David Blanton wrote:
> Yeah, I was doing it with CGBitmapContextCreate followed by
> CGBitmapContextCreateImage but that ends up as a CGImageRef.
>
> I want NSImage so I can put an NSImageCell in an NSOutlineView and walk away !
I suggest you read the extensive commen
Yeah, I was doing it with CGBitmapContextCreate followed by
CGBitmapContextCreateImage but that ends up as a CGImageRef.
I want NSImage so I can put an NSImageCell in an NSOutlineView and
walk away !
Happy New Year !
I have 15 year old scotch to crack with a 28 year Apple Employee this
On Dec 31, 2009, at 2:26 PM, David Blanton wrote:
> Given an array of color data (a generic bitmap) what is the best / fastest /
> recommended method to convert this to an NSImage?
Load your data into memory, create an NSBitmapImageRep from that pile of
data, then make an NSImage from the NSBit
Given an array of color data (a generic bitmap) what is the best /
fastest / recommended method to convert this to an NSImage?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the li
On Dec 31, 2009, at 10:36, Oftenwrong Soong wrote:
> If it is true that the ONLY safe thing you can do in dealloc is release
> instance variables, then where else/how else are you supposed to implement a
> method that is guaranteed to be called upon an object's termination, so that
> you can do
On Dec 31, 2009, at 09:36, Jerry Krinock wrote:
> So, to solve this problem, I implemented a lockout kludge, an ivar
> mIsCleaningStacks, in the undo manager. Its -removeAllActions locks it out
> while it is removing objects from its undo and redo stacks, and if
> removeAllActionsWithTarget: s
Hi all,
If it is true that the ONLY safe thing you can do in dealloc is release
instance variables, then where else/how else are you supposed to implement a
method that is guaranteed to be called upon an object's termination, so that
you can do final cleanups, such as removing it as an observer
On Dec 31, 2009, at 1:14 PM, Joshua Garnham wrote:
> So would this work?…
>
> CGFloat spacing = 5.0f;
> NSMutablePargagraphStyle *paragraphStyle;
> [paragraphStyle setLineSpacing:spacing];
> [paragraphStyle setMinimumLineHeight:spacing];
> [paragraphStyle setMaximumLineHeight:spacing];
> [textView
Thanks, there is no immediate need to override so I will try calling it.
So would this work?…
CGFloat spacing = 5.0f;
NSMutablePargagraphStyle *paragraphStyle;
[paragraphStyle setLineSpacing:spacing];
[paragraphStyle setMinimumLineHeight:spacing];
[paragraphStyle setMaximumLineHeight:spacing];
[t
On Tue, Dec 29, 2009 at 4:13 PM, Paul Archibald wrote:
> Cool, thanks, I'll try that.
> On Dec 29, 2009, at 11:10 AM, davel...@mac.com wrote:
>> On Dec 29, 2009, at 11:56 AM, Paul Archibald wrote:
>>> I am using SQLite in my iPhone app. and i want to be able to email the
>>> database file. I see
I remember reading that the only safe thing to do in your dealloc method is to
release instance variables. If you look at lines #23 - #25 in the call stack
below, it appears that NSDocument's -dealloc is doing more, sending
-removeAllActions to its undo manager. Similarly, lines #7 and #8 say
On Wed, 30 Dec 2009 15:50:50 -0800, David Duncan
said:
>I would honestly recommend you get and provision a device if you plan to do
significant development, as there are a number of other limitations in the
simulator (the most relevant of which is the drastic performance differences
between the de
Thanks for the pointers, Quincey. I tried a few of the things you suggested,
but settled on the filter predicate. I added my view controller for the
projects detail view as an observer to self.selections.account. Each time the
selected account changes, I set the filter predicate to filter the
VERY INTERESTING!!!
:D
G.
On Dec 31, 2009, at 2:25 PM, Andreas Mayer wrote:
>
> Am 31.12.2009 um 00:09 Uhr schrieb Ken Thomases:
>
>> There is no mouse-up event. He wants to present a menu if there's been X
>> time since the mouse-down even when _no other events have arrived since
>> then_.
Am 31.12.2009 um 00:09 Uhr schrieb Ken Thomases:
There is no mouse-up event. He wants to present a menu if there's
been X time since the mouse-down even when _no other events have
arrived since then_. There's no getting around using a timer of
some sort.
That's a case for -performSelec
Yep Ken is right.
I want to present the menu after a dt has passed with the mouse pressed, so the
mouseUp will never be called until (the menu is presented, which in this case
the user will release the mouse button, or when the user depresses the button
before the required time).
So Henry's Id
28 matches
Mail list logo