You can drag any application into the toolbar. Not sure there is any
official way to do this automatically. You certainly could hack
something together modifying com.apple.finder.plist but I would advice
against. Better show your users how to get that application into the
finder toolbar and let the
Hello all.
I have subclasses NSCollectionView to be able to draw a custom background
gradient.
When that collectoin view doesn't accepts layers or its parent view neither,
the gradient its drawn, the drawRect method its called, but if the collection
view accepts layer or its parent does, then
Hi everyone,
Can anyone tell me how to NSLog() a va_list variable so I can see what's in it?
Thanks for the help!
-Matt___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact
Le 17 juin 2010 à 14:21, Matt James a écrit :
> Hi everyone,
>
> Can anyone tell me how to NSLog() a va_list variable so I can see what's in
> it?
>
You can't. va_list does not contains information about the type of variables it
contains.
-- Jean-Daniel
___
What exactly so you want?
Either you have an va_list and want to give it to NSLog? Then use
void NSLogv(NSString *format, va_list args);
But I think you want to know what the va_list contains.
Then you just loop over it.
"man stdarg" will help.
Example:
void foo(char *fmt, ...)
LinkedIn
Alex Wait requested to add you as a connection on LinkedIn:
--
Cameron,
I'd like to add you to my professional network on LinkedIn.
- Alex
Accept invitation from Alex Wait
http://www.linkedin.com/e/7CEPLQL12CQ4K1l0S-51en6YhLE4yif1p-H_
On Jun 17, 2010, at 5:37 AM, Alexander Spohr wrote:
> But I think you want to know what the va_list contains.
> Then you just loop over it.
> "man stdarg" will help.
>
> Example:
> void foo(char *fmt, ...)
> {
> va_list ap;
> int d;
>
There is an assertion often encountered in people's blogs, answers to
questions on forums, etc., that the proxy object provided by
mutableArrayValueForKey: is inefficient - in particular, that if you don't
also implement -countOfItems, -objectInItemsAtIndex:,
-insertObject:inItemsAtIndex:, and -rem
On 17 Jun 2010, at 17:47, Matt Neuburg wrote:
> There is an assertion often encountered in people's blogs, answers to
> questions on forums, etc., that the proxy object provided by
> mutableArrayValueForKey: is inefficient
This is wrong. The proxy only occurs a slight performance penalty over di
On Jun 17, 2010, at 1:36 AM, Torsten Curdt wrote:
You can drag any application into the toolbar.
So perhaps there is a way to programatically, via an installer, to
insert an app into the toolbar?
-koko
___
Cocoa-dev mailing list (Cocoa-dev@list
This question is a FAQ, but I'm going to ask it anyway.
It has been well said by mmalc that "Observing a collection is not the same
as observing the properties of the objects in a collection." Specifically,
in that oh-so-common configuration, an NSMutableArray of MSMutableDictionary
objects, if ev
On 2010 Jun 17, at 12:21, Matt Neuburg wrote:
> My question is, does anyone have a *simple* approach to this common problem?
Not necessarily any simpler, but another technique which may be better than
observing each object in some situations, (although not yours, without
modification). Implem
On Jun 17, 2010, at 12:10 PM, Mike Abdullah wrote:
> On 17 Jun 2010, at 17:47, Matt Neuburg wrote:
>
>> There is an assertion often encountered in people's blogs, answers to
>> questions on forums, etc., that the proxy object provided by
>> mutableArrayValueForKey: is inefficient
>
> This is wro
On Jun 17, 2010, at 2:21 PM, Matt Neuburg wrote:
> It has been well said by mmalc that "Observing a collection is not the same
> as observing the properties of the objects in a collection." Specifically,
> in that oh-so-common configuration, an NSMutableArray of MSMutableDictionary
> objects, if e
On Jun 16, 2010, at 7:19 PM, Tony Romano wrote:
> Hmm... I'm returning the NSDragOperationNone now, all I get is an image of
> what is being dragged no other symbol and the outlineview won't accept the
> drop which is correct. When I have a valid selection, I get the other symbol
> for copy(
Hi,
I trying to animate a window containing a NSOpenGLView to full screen. The
implementation follows the recipe by Matt Gallagher:
http://cocoawithlove.com/2009/08/animating-window-to-fullscreen-on-mac.html.
Everything works, except that the OpenGLView flashes once at the beginning
of the anima
On 15 Jun 2010, at 5:25 PM, WT wrote:
> I'm trying to find out how to set the height of a UIWebView instance, given
> its content, so that the user doesn't need to scroll the UIWebView itself to
> see that content. Of course, the content might not fit in the vertical space
> available but the U
Hi All,
I am trying to open a ppt (power point) file in my cocoa application
(leopard/snow leopard).
I want to open it in a view inside my application. Open as a slide show view
(ie: no editing is allowed)
I don't want to open it as a separate application triggered from my
application.
Quicklook
Hello list,
In my application, there are several CALayers (actually subclasses of CALayers)
that are sublayers of my root layer. The user can then drag these layers
around and select them, etc. Dragging works fine.
When a user selects/deselects one of the layers, the following code snippet is
I'm just starting to explore DVD playback and downloaded the "CocoaDVDPlayer"
sample. Did a build and started it in the debugger. As soon as it calls
"DVDInitialize()", the application stops with "Program exited with status
value:45.kill" in the debugger. Anybody has any clue? I can't find any e
On Jun 17, 2010, at 4:52 PM, Laurent Daudelin wrote:
> I'm just starting to explore DVD playback and downloaded the "CocoaDVDPlayer"
> sample. Did a build and started it in the debugger. As soon as it calls
> "DVDInitialize()", the application stops with "Program exited with status
> value:45.
On Jun 17, 2010, at 2:04 AM, Ajay Sabhaney wrote:
>ab.borderColor=CGColorCreateGenericRGB(1.0f,1.0f,1.0f,1.0f);
Be aware that you are actually leaking a color here. Core Animation retains all
CF-type data that it gets, but since the compiler didn't support making a CF
type as retain-able th
I have built a Cocoa Static Lib from the Xcode template.
To test the Lib I have a Cocoa App that links with the LIb.
When building the Cocoa App I get this link error:
"___gxx_personality_v0", referenced from:
___gxx_personality_v0$non_lazy_ptr in LibLicenseD.a(HTTP.o)
ld: symbol(s
On Jun 17, 2010, at 5:45 PM, k...@highrolls.net wrote:
> I have built a Cocoa Static Lib from the Xcode template.
>
> To test the Lib I have a Cocoa App that links with the LIb.
>
> When building the Cocoa App I get this link error:
>
> "___gxx_personality_v0", referenced from:
> ___gxx_per
More data on the question:
LibLicenseD.a(HTTP.o):
0150 t -[HTTP download:didFailWithError:]
015e t -[HTTP downloadDidFinish:]
t -[HTTP initWithString:]
A .objc_class_name_HTTP
U .objc_class_name_NSObject
U .objc_class_name_NSURL
U .objc_class_n
Thank you Nick!
Up and running ... and testing!
-koko
On Jun 17, 2010, at 5:52 PM, Nick Zitzmann wrote:
On Jun 17, 2010, at 5:45 PM, k...@highrolls.net wrote:
I have built a Cocoa Static Lib from the Xcode template.
To test the Lib I have a Cocoa App that links with the LIb.
When buildi
On Thu, Jun 17, 2010 at 4:17 PM, Nick Zitzmann wrote:
> The function probably detected using ptrace() that you were running it in a
> debugger and killed itself. This happens with a lot of Apple frameworks that
> deal with DRM, even though the DRM used on DVDs was cracked a long time ago.
Didn'
On Wed, Jun 16, 2010 at 8:35 PM, kalpana k wrote:
> Quicklook opens ppt files, So Can we achieve this using Quick look
> Framework? How to use it?
Have you read the Quick Look framework documentation?
--Kyle Sluder
___
Cocoa-dev mailing list (Cocoa-de
On 2010-06-17, at 5:19 PM, David Duncan wrote:
> On Jun 17, 2010, at 2:04 AM, Ajay Sabhaney wrote:
>
>> ab.borderColor=CGColorCreateGenericRGB(1.0f,1.0f,1.0f,1.0f);
>
> Be aware that you are actually leaking a color here. Core Animation retains
> all CF-type data that it gets, but since the
> Didn't there used to be a technote on how to circumvent this behavior?
> iTunes pulls some of the same trickery.
I doubt Apple would build in a way to circumvent this behavior. That would
defeat the purpose of having it there in the first place.
That said, you can build a kernel extension that
Gotta Love Corbin, works as advertised.
What's inconsistent here though is the copy operation changes the icon so you
would think the NSDragOperationNone(or better yet the non-existent
NSDragOperationNotAllowed) would change it as well. OR the return operation
would not change any of them and
On 18-Jun-2010, at 6:06 AM, Ken Thomases wrote:
>
>>> - in particular, that if you don't
>>> also implement -countOfItems, -objectInItemsAtIndex:,
>>> -insertObject:inItemsAtIndex:, and -removeObjectFromItemsAtIndex:,
>>> then every change in the mutable array through the proxy replaces the whol
On 2010 Jun 17, at 15:33, Ken Thomases wrote:
> Where's the difficulty, again?
I was going to ask what happens if this object which owns 5000 widget objects
gets deallocated. Their observers have not been removed and I would expect
nastygrams like this [1]. But then I noticed that your obser
On Thu, 17 Jun 2010 14:51:04 -0700, Jerry Krinock said:
>
>On 2010 Jun 17, at 12:21, Matt Neuburg wrote:
>
>> My question is, does anyone have a *simple* approach to this common problem?
>
>Not necessarily any simpler, but another technique which may be better than
observing each object in some si
On or about 6/17/10 5:56 PM, thus spake "Roland King" :
> if ... you just have a class variable called or _ then the
> whole array is not replaced, the method you call on NSMutableArrayValueForKey:
> is passed through to that underlying variable which does what you might expect
> and operates on
You can only use Quick Look through the Preview panel API. Search for
QLPreviewPanel
No preview view is accessible through API so far. File an enhancement request.
--
Julien
On Thursday, June 17, 2010, kalpana k wrote:
> Hi All,
>
> I am trying to open a ppt (power point) file in my cocoa appl
On Thu, Jun 17, 2010 at 5:09 PM, Ajay Sabhaney wrote:
> -The initializer initWithLayer: of my subclass of CALayer,
> MRWorkspaceItemLayer is being invoked, even though I never explicitly invoke
> this
The documentation for -[CALayer initWithLayer:] describes how this
method is used to create th
On Jun 17, 2010, at 8:19 PM, Matt Neuburg wrote:
> On or about 6/17/10 5:56 PM, thus spake "Roland King" :
>
>> if ... you just have a class variable called or _ then the
>> whole array is not replaced, the method you call on
>> NSMutableArrayValueForKey:
>> is passed through to that underlying
On Jun 17, 2010, at 8:07 PM, Jerry Krinock wrote:
> I was going to ask what happens if this object which owns 5000 widget objects
> gets deallocated. Their observers have not been removed and I would expect
> nastygrams like this [1]. But then I noticed that your observer is 'self'.
>
> Ken,
On Jun 17, 2010, at 8:16 PM, Matt Neuburg wrote:
> That's pretending that "self", who owns the array, is also the one who wants
> to do the observing, that it always wants to do it, etc. Obviously that's
> easy.
>
> I'm talking about the general problem of any object registering through the
> arr
On Jun 17, 2010, at 7:02 PM, Ken Thomases wrote:
> you could probably abstract it out into a custom class to facilitate array
> observing, if you really wanted it. Maybe somebody already has, for all I
> know.
Yeah, that's kind of what I was wondering. Or I guess you could "just" roll
your o
On Jun 17, 2010, at 8:41 PM, Charles Srstka wrote:
> On Jun 17, 2010, at 8:19 PM, Matt Neuburg wrote:
>
>> On or about 6/17/10 5:56 PM, thus spake "Roland King" :
>>
>>> if ... you just have a class variable called or _ then the
>>> whole array is not replaced, the method you call on
>>> NSMut
Hello All,
Anybody here knows how to push view controllers to the left? I am creating a
Hebrew app and I would like
the pushing of view controllers to start from the left instead of a normal
right push.
Any help would be appreciated
Thanks,
Charisse
_
The conclusion is that I decided to not use NSCollectionView in this
application.
Besides this mysterious non-encoding of representedObjects in my popup button
menu, I've also realized that NSCollectionView does not allow me to enable
different menu items in the popup button menus in different
I think one possible explanation for the lack of cursor changing with
NSDragOperationNone is that [NSCursor operationNotAllowedCursor] appears to
have been introduced in 10.6 (Snow Leopard), so this was not a possibility in
the paradigm contained in prior versions of the API.
To file an enhance
On Jun 17, 2010, at 8:29 PM, Jerry Krinock wrote:
> The conclusion is that I decided to not use NSCollectionView in this
> application.
Even though "everybody knows" this is what usually happens when people try to
use NSCollectionView, it's not gonna get any better unless we keep filing
radar
By 'where' I meant, Cocoa APIs or Documentation. Sorry should have been more
clear about that. The docs definitely need an update on the new cursor, the
text description is there but the cursor is missing from the table which you
may think there aren't anymore defined other that what's in the
Hi,
I have a non document based application, I quit the app by sending terminate to
NSApplication(file owner). if I close the main window, application will not be
closed, what I'd like is, when user close the main window, application also
terminates, possible? Thanks,
Angelo
_
48 matches
Mail list logo