On Oct 16, 2010, at 9:41 AM, Hrishikesh Murukkathampoondi wrote:
> I am trying to learn how to open a second window in an Application (Mac OS X,
> not iOS). I have created a separate Nib file for loading the second window. I
> have a couple of questions
>
>
> Q1. The "Resource Programming Guid
On 16 October 2010 10:41, Hrishikesh Murukkathampoondi wrote:
>
> mySecondWin = [[MyWinController alloc] initWithWindowNibName:@
> "MySecondWindow"];
>
You get an instance of your window controller class:
mySecondWinController = [[MyWinController alloc] initWithWindowNibName:@
"MySecondWindow"];
gt; To: john darnell
> Cc: cocoa-dev@lists.apple.com
> Subject: Re: Loading a nib
>
>
> On 11 Jun '08, at 12:43 PM, john darnell wrote:
>
> > I stepped through
> > showNewDialog and initWithWindowNibName so I know that that code is
> > being executed, but the s
On 11 Jun '08, at 12:43 PM, john darnell wrote:
I stepped through
showNewDialog and initWithWindowNibName so I know that that code is
being executed, but the second window never makes an appearance.
My first guess would be that, in NewDialogController.nib, the "window"
outlet of the file's
On May 2, 2008, at 5:37 PM, Graham Cox wrote:
is a Carbon app, so there is no Cocoa runtime available. You can use
a nib, but it has to be a Carbon one, so the functions you need to
look at are in the HIView family of Carbon functions.
It doesn't matter what Carbon app you're writing a plug
Am 03.05.2008 um 05:58 schrieb Michael Ash:
ObjC gets set up simply by linking to it, so that happens without any
intervention. Foundation can be used with no additional setup as well.
AppKit requires that you initialize it by calling NSApplicationLoad()
before using it for anything else. Fortuna
Am 03.05.2008 um 03:19 schrieb Graham Cox:
One thing to clarify about Carbon vs. Cocoa - while Cocoa itself is
unavailable, you can of course use Core Foundation. However
everything in Carbon is lower level and generally more work than
Cocoa, so be prepared ;-)
Cocoa unavailable? What? Y
On Fri, May 2, 2008 at 10:50 PM, Graham Cox <[EMAIL PROTECTED]> wrote:
> OK, that's cool :)
>
> What's involved in setting up a Cocoa runtime environment in such a case?
ObjC gets set up simply by linking to it, so that happens without any
intervention. Foundation can be used with no additional s
OK, that's cool :)
What's involved in setting up a Cocoa runtime environment in such a
case?
G.
On 3 May 2008, at 12:40 pm, Michael Ash wrote:
On Fri, May 2, 2008 at 9:19 PM, Graham Cox <[EMAIL PROTECTED]>
wrote:
One thing to clarify about Carbon vs. Cocoa - while Cocoa itself is
unavai
On Fri, May 2, 2008 at 9:19 PM, Graham Cox <[EMAIL PROTECTED]> wrote:
> One thing to clarify about Carbon vs. Cocoa - while Cocoa itself is
> unavailable, you can of course use Core Foundation. However everything in
> Carbon is lower level and generally more work than Cocoa, so be prepared ;-)
Co
On 3 May 2008, at 10:45 am, J. Todd Slack wrote:
I have a question.
1. Can you point me to where it puts the UI inside the iTunes
Visualizer window?
Not sure what you mean by "putting the UI in the iTunes visualizer
window"? It doesn't - it creates a separate dialog window which seems
On 2 May '08, at 5:41 PM, J. Todd Slack wrote:
I actually want to try to stay as cross-platform as possible since
this will need to work on Windows down the road.
Well, then you can't use Objective-C, or nibs, at all, as neither of
those are available on Windows.
You'd be better off usin
Hi Brian,
[NSBundle loadNibNamed:@"SettingsDialog" owner:self]; // the nib
name is SettingsDialog.nib
Xcode complains that this is the first time that self is used.
Isn't there some sample code for building Cocoa iTunes plugins
available somewhere that will answer these questions for you
On May 2, 2008, at 7:33 PM, J. Todd Slack wrote:
Hi,
One question though.
When I use:
[NSBundle loadNibNamed:@"SettingsDialog" owner:self]; // the nib
name is SettingsDialog.nib
Xcode complains that this is the first time that self is used.
You probably want to create an instance of a
iTunes is a Carbon app, so there is no Cocoa runtime available. You
can use a nib, but it has to be a Carbon one, so the functions you
need to look at are in the HIView family of Carbon functions.
There may be a way to set up a Cocoa runtime in an iTunes plugin but
I'm not sure about that.
On May 2, 2008, at 5:33 PM, J. Todd Slack wrote:
When I use:
[NSBundle loadNibNamed:@"SettingsDialog" owner:self]; // the nib
name is SettingsDialog.nib
Xcode complains that this is the first time that self is used.
I am a bit rusty right now, can anyone explain why? I thought self
coul
I should have mentioned, if you're calling from C there probably is no
'self' since you're not calling from inside an object's method.
You'll have to pass a pointer to the object you want to be the owner.
On May 2, 2008, at 5:33 PM, J. Todd Slack wrote:
One question though.
When I use:
Hi,
One question though.
When I use:
[NSBundle loadNibNamed:@"SettingsDialog" owner:self]; // the nib name
is SettingsDialog.nib
Xcode complains that this is the first time that self is used.
I am a bit rusty right now, can anyone explain why? I thought self
could be used like this.
Wh
You can convert this to the C equivalent if you absolutely must use C
(off the top of my head):
Class mclass = objc_getMetaClass("NSBundle");
SEL s = @selector(loadNibNamed:owner:);
IMP f = class_getMethodImplementation(mclass, s);
BOOL res = f(mclass, s, @"SettingsDialog", self);
O
Am 03.05.2008 um 00:38 schrieb J. Todd Slack:
But that is Objective-C, I need to do it from a .c file.
No you don't. Objective C is a superset of C, so if you want to us
Objective C, just change the file into a .m file.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere...
On May 2, 2008, at 4:38 PM, J. Todd Slack wrote:
Yeah, I am using:
[NSBundle loadNibNamed:@"SettingsDialog" owner:self;]
But that is Objective-C, I need to do it from a .c file.
Change the file's extension from .c to .m and then it becomes an ObjC
file. ObjC is a true superset of C, so t
Hi Jon,
Thank you for the reply.
I don't know the specifics of iTunes plug-ins, but normally you load
a NIB with -[NSBundle loadNibFile:externalNameTable:withZone:]
method. That method, and some more convenient form of it are
available in AppKit and declared in NSNibLoading.h.
Yeah, I am
Hey Jason -
I don't know the specifics of iTunes plug-ins, but normally you load a
NIB with -[NSBundle loadNibFile:externalNameTable:withZone:] method.
That method, and some more convenient form of it are available in
AppKit and declared in NSNibLoading.h.
Good Luck -
Jon Hess
On May 2,
Hi Guys,
Just to clarify,
I might do this in Obj-C
[NSBundle loadNibNamed:@"SettingsDialog" owner:self;]
But not sure how to do it from a .c file.
Thoughts?
-Jason
On May 2, 2008, at 3:29 PM, J. Todd Slack wrote:
Hello Guys,
So I am creating an iTunes PLugin, can anyone show me how to
24 matches
Mail list logo