Can a nib be confused about its owner?

2008-06-22 Thread John Murphy
Since the File's Owner "object" in a nib file is actually a proxy for an object 
that is provided at runtime, what happens if the nib is expecting NSApplication 
to be its File's Owner but you called for the nib to be loaded from inside your 
code using an instance of NSWindowController. Who wins?


  
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


initWithCoder in Nib object loading

2008-06-27 Thread John Murphy
I notice that there are a couple different init methods used for nib loading. 
For instance, objects from the IB Library get an initWithCoder message, while 
custom view objects get an initWithFrame, and everything else gets an init. Why 
is this? Specifically, why a special initWithCoder technique? After all, isn't 
everything encoded?


  
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Extent of NDA concerning iPhone

2008-06-27 Thread John Murphy
I was planning to put some video tutorials up on my site that included some 
stuff on the iPhone. Should I hold off?


  
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


viewing method calls

2008-06-29 Thread John Murphy
How do I view the messages (method calls) that are sent during the loading of 
an application?


  
___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Create command from string

2008-12-01 Thread John Murphy
How do I do execute a command expression from a string?
e.g., 
NSString *string = [NSString stringWithFormat:@"NSLog(@\"hello\");"]; 

Now what?


  

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Accessing properties of a generic class

2008-08-20 Thread John Murphy
I have a Person class with name and image properties stored in an array. When I 
access its properties from within the controller class like this:

Person *person = [objectArray objectAtIndex:0]; 
[nameField setStringValue:person.name]; 
[imageArea setImage:person.image];

everything works fine. But when I try to do it generically:

id object = [objectArray objectAtIndex:0];
[nameField setStringValue:object.name]; 
[imageArea setImage:object.image];

I get errors about the name and image properties not being in a structure or 
union. 


  

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


line break in Interface Builder

2008-09-04 Thread John Murphy
I need to know how to create a line break in Interface Builder.
"\n" does not work...
I have a multiline text field that is populated using bindings, the value is 
modified using a display pattern: 
%{value1}@  %{value2}@
I need a line break between these two values.
Any ideas?


  

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: line break in Interface Builder

2008-09-04 Thread John Murphy
This was actually my first thought as well, but I was hoping to avoid this 
technique because I am using this as part of a tutorial I want to remain in 
Interface Builder as much as possible for this particular lesson. 


--- On Thu, 9/4/08, I. Savant <[EMAIL PROTECTED]> wrote:

> From: I. Savant <[EMAIL PROTECTED]>
> Subject: Re: line break in Interface Builder
> To: [EMAIL PROTECTED]
> Cc: Cocoa-dev@lists.apple.com
> Date: Thursday, September 4, 2008, 7:20 PM
> On Thu, Sep 4, 2008 at 3:14 PM, John Murphy
> <[EMAIL PROTECTED]> wrote:
> > I need to know how to create a line break in Interface
> Builder.
> > "\n" does not work...
> > I have a multiline text field that is populated using
> bindings, the value is modified using a display pattern:
> > %{value1}@  %{value2}@
> > I need a line break between these two values.
> > Any ideas?
> 
>   If inserting a \n escape doesn't work, my next
> idea would be to
> create a dependent key (dependent on whatever key you were
> original
> trying to bind) that gives the proper formatted string.
> 
>   Say you wanted to bind to two keys called:
> "foo" and "bar". Create a
> third key "formattedFooBarString" (or whatever)
> and register it as
> dependent upon foo and bar (so that if either foo or bar
> change,
> foormattedFooBarString is also updated). The key has no
> setter, but
> its getter returns:
> 
> return [NSString stringWithFormat:@"[EMAIL PROTECTED]@",
> [self
> valueForKey:@"foo"], [self
> valueForKey:@"bar"]];
> 
>   You then bind to foormattedFooBarString (without using
> the display
> pattern) and it should work fine. I hope this helps.
> 
> --
> I.S.


  

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Re: line break in Interface Builder

2008-09-04 Thread John Murphy
That works. Thanks everybody!
John


  

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


How did I miss this?

2008-09-07 Thread John Murphy
I just released the the view on NSViewController objects can be accessed with 
dot syntax, i.e., self.view instead of [self view].
Has this always been the case? I don't see any listing of "Properties" in 
documentation. 
I'm hitting myself for not discovering it sooner.


  

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]


Flowing text between text fields

2009-01-31 Thread John Murphy
On many applications, when you enter in a serial number, there are several text 
fields in a row, and as the user enters in the serial number the cursor 
automatically jumps to the next text field at the appropriate time.
I am assuming that this is a long string being displayed across several text 
fields. How is this done?


  

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com


Re: Converting .wav files to MP3

2009-02-19 Thread John Murphy
I do a lot of audio conversion for my website. 
For .wav to .mp3 conversion it is necessary to perform a compression operation, 
so not all software supports it. Note that most all programs can open a .wav 
file, so you are looking for an "MP3 exporter" not a specific "WAV to MP3 
converter".
On the Mac there are several programs that I know can do this. Be aware that 
this operation is usually under the "Podcast" sections of these programs:
Paid Apps:
I use Bias Peak which has a downloadable plug-in for mp3 compression. The Apple 
tools Soundtrack and Compressor can do it as well, though it is not as 
straightforward. 
All of the studio recording software programs- Logic, Pro Tools, and Live can 
do this, but that is not what they are intended for, so it would be a big 
learning curve just if you haven't used them before. 

Free Apps:
Garage Band probably can do this. I know you can import .wav files into a 
podcast project, and then "Send to iTunes" using mp3 compression.
Audacity is the standard freeware for audio editing, but I have never used it.
Hope this helps.
John C Murphy 


  

___

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com