On Mar 1, 2008, at 7:28 PM, Hannes Petri wrote:
iTunesApplication *iTunes = [[SBApplication alloc]
initWithBundleIdentifier:@"com.apple.iTunes"];
iTunesTrack *currentTrack = [iTunes currentTrack];
if ([currentTrack isKindOfClass:[iTunesFileTrack class]]) {
…
}
The problem is,
On Mar 1, 2008, at 8:35 PM, Kyle Sluder wrote:
On Sat, Mar 1, 2008 at 9:01 PM, Adam R. Maxwell <[EMAIL PROTECTED]>
wrote:
Thanks, but I think you're misinterpreting the example :). The
object
has a single NSMachPort ivar, added to the some thread's runloop.
When a notification arrives on a
On Sat, Mar 1, 2008 at 9:01 PM, Adam R. Maxwell <[EMAIL PROTECTED]> wrote:
> Thanks, but I think you're misinterpreting the example :). The object
> has a single NSMachPort ivar, added to the some thread's runloop.
> When a notification arrives on a different thread in
> processNotification:,
Hi Leonardo-
I implemented a counter that looked the same in a safari-like tabs
implementation...
http://www.positivespinmedia.com/dev/PSMTabBarControl.html
Hope this helps!
John
On Mar 1, 2008, at 3:35 PM, Leonardo Cassarani wrote:
Hi all
I'm trying to make a lateral sidebar that is si
On Mar 1, 2008, at 6:01 PM, John Stiles wrote:
Unless Stephane plans on manually tracking the expanded items
himself, I don't see how this answers his original question
That's what you have to do. I use these notifications to save which
items are expanded as part of my documents' data. It'
Thanks for your help. I'll try it. I'm new to Objective C. Coming from Java…
On Sat, Mar 1, 2008 at 7:07 PM, Dimitri Bouniol <[EMAIL PROTECTED]> wrote:
> Easy. Create an instance of a NSButton:
> NSButton *myButton = [[NSButton alloc] initWithFrame:nsRectOfButton];
>
> Then add it to your view:
>
On Mar 1, 2008, at 6:14 PM, Chris Ryland wrote:
On Mar 1, 2008, at 2:35 AM, Robert Douglas wrote:
When I looked into this last fall I decided I liked the look of
DataGraph and bought a license, but then I ran into trouble
incorporating it into a garbage-collected app and started writing
I found that it is possible to get invalid strings from a PowerPoint
file using applescript. The invalid string can not be converted to
UTF-8 and corrupt NSXMLDocument.
The problem occur when iterating paragraphs in a shape. Iterating
lines returns correct string. However, the issue is that
On Mar 1, 2008, at 5:44 PM, Kyle Sluder wrote:
On Sat, Mar 1, 2008 at 7:07 PM, Adam R. Maxwell <[EMAIL PROTECTED]>
wrote:
Does this apply to NSMachPort as well? I filed a doc bug hoping for
eventual clarification, but I'd rather know sooner rather than later
if the code has to be rewritten.
Unless Stephane plans on manually tracking the expanded items himself, I
don't see how this answers his original question—and I think it's a
valid question, too.
j o a r wrote:
On Mar 2, 2008, at 12:02 AM, Stéphane Sudre wrote:
An I missing something and is there a way to know which items a
On Sat, Mar 1, 2008 at 7:07 PM, Adam R. Maxwell <[EMAIL PROTECTED]> wrote:
> Does this apply to NSMachPort as well? I filed a doc bug hoping for
> eventual clarification, but I'd rather know sooner rather than later
> if the code has to be rewritten. rdar://problem/5772256
You're misinterpret
Hello!
I want to retrieve the path to the currently played file in iTunes. I
thought scripting bridge would be the perfect tool for this, however
i've run into some problem. I have this code:
iTunesApplication *iTunes = [[SBApplication alloc]
initWithBundleIdentifier:@"com.apple.iTunes"];
Some time ago, I implemented a simple threaded notification queue by
following the example here:
http://developer.apple.com/documentation/Cocoa/Conceptual/Notifications/Articles/Threading.html
which basically adds an NSMachPort to the thread's runloop and calls -
[NSPort sendBeforeDate:compon
On Mar 2, 2008, at 12:02 AM, Stéphane Sudre wrote:
An I missing something and is there a way to know which items are
expanded (either visible or not)?
How about NSOutlineViewItemWillExpandNotification &
NSOutlineViewItemWillCollapseNotification, and the associated delegate
methods?
j
There seems to be a missing method in NSOutlineView.
You can know an item is expanded only if its parent is expanded (so
that the item itself is visible).
This is problematic if you want to cache the current list of expanded
items. Instead of just iterating through the item hierarchy when
On Sat, Mar 1, 2008 at 8:00 AM, Greg Parker <[EMAIL PROTECTED]> wrote:
The right way to fix this is to add new API in libobjc: given an ffi_type,
> return the correct objc_msgSend function pointer for that return type. I
> filed the feature request for that today. Until then you'll still need to
>
On Sat, Mar 1, 2008 at 6:03 PM, Ben Kazez <[EMAIL PROTECTED]> wrote:
> On Mar 1, 2008, at 5:02 PM, I. Savant wrote:
> > ... and the crash signal would be?
>
> EXC_BAD_ACCESS.
Sounds like the table's next responder is being deallocated under its feet.
--Kyle Sluder
_
On Mar 1, 2008, at 2:35 AM, Robert Douglas wrote:
When I looked into this last fall I decided I liked the look of
DataGraph and bought a license, but then I ran into trouble
incorporating it into a garbage-collected app and started writing my
own. Mind you, that could have been me and my
On Mar 1, 2008, at 5:02 PM, I. Savant wrote:
I'm getting a crash in my source-list-style outline view when my
app is in the background and I drag on any of the rows of the view:
... and the crash signal would be?
EXC_BAD_ACCESS.
Ben
___
Cocoa-d
I'm getting a crash in my source-list-style outline view when my app
is in the background and I drag on any of the rows of the view:
... and the crash signal would be?
--
I.S.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not
Hi everyone,
I'm getting a crash in my source-list-style outline view when my app
is in the background and I drag on any of the rows of the view:
-[NSWindow sendEvent:]
...
584 forwardMethod
584 forwardMethod
584 forwardMethod
584 -[NSView _nextResponderForEvent:]
584 -[NSView hitTest:]
584 -
Hi all
I'm trying to make a lateral sidebar that is similar to Mail.app's or
iTunes'. It all works well with a NSOutlineView with the "Data source"
display option, but I was wondering how could I get the single items
to draw the equivalent of the "unread count" for folders in Mail.app's
s
Easy. Create an instance of a NSButton:
NSButton *myButton = [[NSButton alloc] initWithFrame:nsRectOfButton];
Then add it to your view:
[view addSubview:myButton];
of course you might want to edit the image, title, style of the
button, so check in NSControl and NSButton docs for the configura
Does anyone know how to add buttons dynamically? For example, on iPhoto
there are albuns on the left bar. I think they are buttons. What are them
and how can I add it dynamically?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post
I have a SFAuthorizationView which contains several other controls,
however at the not-authorised state, all components are still
accessible.
I am not sure if it is supposed to happen automatically or if I need
to implement this myself in the delegate methods.
- (void)authorizationViewDid
On Fri, Feb 29, 2008 at 7:00 PM, Steve Weller <[EMAIL PROTECTED]> wrote:
> I have a custom view into which I can draw a background color and a
> centered rectangle. As the window is resized, the rectangle stays
> centered and is clipped when the window gets small.
>
> I want to define a canvas
On Mar 1, 2008, at 5:00 AM, Greg Parker wrote:
The right way to fix this is to add new API in libobjc: given an
ffi_type, return the correct objc_msgSend function pointer for that
return type. I filed the feature request for that today. Until then
you'll still need to handle that choice your
On Feb 29, 2008, at 10:33 PM, Quincey Morris wrote:
A couple of small points:
-- It's not quite correct to use the superview's frame to calculate
a view's frame, since they are in different coordinate systems. You
really should use [[self superview] bounds], which is in the same
coordina
On Mar 1, 2008, at 1:22 AM, Sherm Pendley wrote:
On Fri, Feb 29, 2008 at 2:46 PM, Greg Parker <[EMAIL PROTECTED]>
wrote:
When in doubt, write Objective-C code that returns the type you want,
compile it, and use whichever function the generated assembly code
chose.
What's your advice about wha
On Feb 28, 2008, at 11:04 PM, Daniel Child wrote:
I am trying to understand the interrelationship between various
method calls made once a window controller is instantiated. I am
loading a window controller from within a master controller. Data
passed from the master controller to the windo
On Feb 27, 2008, at 3:25 PM, Daniel Child wrote:
In addition, I see that in the debugger there is both a "window" and
a "_window" variable under self (the controller). Does this mean you
are not supposed to formally declare an outlet for the controller's
window?
NSWindowController has a w
On Fri, Feb 29, 2008 at 2:46 PM, Greg Parker <[EMAIL PROTECTED]> wrote:
>
> When in doubt, write Objective-C code that returns the type you want,
> compile it, and use whichever function the generated assembly code
> chose.
What's your advice about what to do when the choice must be made at runt
32 matches
Mail list logo