Re: Analyzer in error?

2010-01-14 Thread Graham Cox

On 14/01/2010, at 1:09 PM, Greg Parker wrote:

 Yes, the static analyzer is wrong here. 

 But your code sends the message to [self class] instead of NSData


Thanks, makes sense. I can just as well use NSData here as [self class] - 
there's no particular reason to use [self class] here, except habit.

--Graham



___

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: Best practice example for a setup wizard?

2010-01-14 Thread Alastair Houghton
On 13 Jan 2010, at 23:19, PCWiz wrote:

 If you really want to do a wizard, this might be a good starting point:
 
 http://www.cimgf.com/2008/03/03/core-animation-tutorial-wizard-dialog-with-transitions/

Remembering that **they aren't called Wizards**.  That's Windows terminology. 
 Mac OS X calls them Assistants or Setup Assistants, and there's a section 
in the HIG about them:

http://developer.apple.com/Mac/library/documentation/UserExperience/Conceptual/AppleHIGuidelines/XHIGInstallationsUpdates/XHIGInstallationsUpdates.html

As others have said, it's best to avoid these kinds of things if at all 
possible.  There are many instances on Windows where the system (or some 
program) asks you lots of questions in a wizard dialog that Mac OS X and 
typical Mac OS X applications will simply figure out for themselves.

Kind regards,

Alastair.

--
http://alastairs-place.net



___

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


Tutorial on writing a Cocoa/Mac app.

2010-01-14 Thread lbland
hi-

We placed a manual with 4 tutorials in it at:

http://www.peervisual.com/manuals/VvidgetCode

Including one showing how to build a Cocoa/Mac app from scratch. It might be 
useful to those that want a description of Cocoa programming from ground zero 
to full deployment.

thanks!-

-lance

___

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: Best practice example for a setup wizard?

2010-01-14 Thread Dave Keck
 1. Creating an iCal account. This one sticks out because it is so
 unnecessary and buggy that it makes me want to shoot my monitor every
 time it appears.
 2. The Bluetooth mouse and keyboard detection ones.
 3. The Certificate Signing Request generator in Keychain Access.app.
 4. First-launch of Mail.app

5. When you turn on your Mac for the first time,
6. First-time iChat,
7. First-time iTunes,
8. Network Diagnostics assistant thing,
9. Remote Install OS X,
10. Any installation package,
11. Display color calibration,
12. Boot Camp Assistant,
13. Migration Assistant

And of course, there's always the Learn more about iLife '09!
dialogs. And the QuickTime content guide. Or the Try MobileMe! It's
rad! dialogs.

As long as we're following Apple's example, I say bombard the user
with ads and wizards until their eyes bleed. :)
___

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: Analyzer in error?

2010-01-14 Thread Kirk Kerekes
AFAIK, yes. 

Please file a bug to add to the ones I have filed on this and similar behaviors.

On Jan 13, 2010, at 9:49 PM, cocoa-dev-requ...@lists.apple.com wrote:

 Message: 10
 Date: Thu, 14 Jan 2010 12:54:46 +1100
 From: Graham Cox graham@bigpond.com
 Subject: Analyzer in error?
 To: Cocoa-Dev List cocoa-dev@lists.apple.com
 Message-ID: de12774f-4249-44b3-b108-e6b2e5212...@bigpond.com
 Content-Type: text/plain; charset=us-ascii
 
 Hi all, I have the following code in a category on NSData:
 
 
 @implementation NSData (SHA1Hash)
 
 - (NSData*)   sha1Hash
 {
   // calculates the 160 bit SHA-1 digest of the given data
   
   unsigned char* digest = (unsigned char*) malloc(20);
   SHA1([self bytes], [self length], digest);
   
   return [[self class] dataWithBytesNoCopy:digest length:20];
 }
 
 
 @end
 
 
 The static analyzer reports this:
 
   Potential leak of an object allocated on line 622
 
   Method returns an Objective-C object with a +1 retain count 
 (owning reference)
   Object returned to caller as an owning reference (single retain 
 count transferred to caller)
   Object allocated on line 622 is returned from a method whose 
 name ('sha1Hash') does not contain 'copy' or otherwise starts with 'new' or 
 'alloc'.  This violatesthe naming convention rules given in 
 the Memory Management Guide for Cocoa (object leaked)
 
 But I think this is wrong - [NSData dataWithBytesNoCopy] returns an object I 
 don't own, and it in turn takes ownership of digest. So where's the leak? 
 Is clang simply mistaking the fact that +dataWithBytesNoCopy CONTAINS 'copy' 
 and not STARTS WITH copy?
 
 --Graham
 

___

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: Best practice example for a setup wizard?

2010-01-14 Thread Alastair Houghton
On 14 Jan 2010, at 12:37, Dave Keck wrote:

 As long as we're following Apple's example, I say bombard the user
 with ads and wizards until their eyes bleed. :)

...***Assistants***...

Kind regards,

Alastair.

--
http://alastairs-place.net



___

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: Best practice example for a setup wizard?

2010-01-14 Thread Ian Piper
Thanks for all the replies. I am inclined to agree - the last thing I want is 
to build something that looks like a Windows application! And I get the issue 
of not bugging the user with a tedious setup process. The idea of having preset 
values that the user can change if he wants to is the way to go, I'm sure.

OK, perhaps I need to rethink how this works. Given that the underlying purpose 
is to authenticate the user to allow access to an encrypted database, would it 
make more sense for me to use the user's Mac OS X account credentials? Is there 
a way (I hesitate to use the phrase best practice again) for my program to 
authenticate the user that way?

Regards,


Ian.
--


On 13 Jan 2010, at 22:54, Marcel Weiher wrote:

 Hi Ian,
 
 well, in a sense the lack of examples *is* illustrating the best practices 
 concerning setup wizards :-)
 
 Cheers,
 
 Marcel
 
 
 On Jan 13, 2010, at 9:54 , Ian Piper wrote:
 
 For one of my applications I want to do a check at startup to see whether a 
 profile and password has been set for the current user, and if not to take 
 them through a setup wizard. I'm sure I can mug my way through writing this 
 but it feels like the kind of thing for which there might be an example 
 illustrating best practice. Can anyone point me at some documentation or 
 examples that might help?
 

___

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: Best practice example for a setup wizard?

2010-01-14 Thread Alastair Houghton
On 14 Jan 2010, at 13:53, Ian Piper wrote:

 OK, perhaps I need to rethink how this works. Given that the underlying 
 purpose is to authenticate the user to allow access to an encrypted database, 
 would it make more sense for me to use the user's Mac OS X account 
 credentials? Is there a way (I hesitate to use the phrase best practice 
 again) for my program to authenticate the user that way?

Potentially, yes---though it depends where this database is stored, how it is 
accessed (e.g. access via a network connection might be handled differently to 
local access) and so on.

Solutions for this kind of thing include using Directory Services (or the new 
OpenDirectory framework), Authentication Services and so on.

Kind regards,

Alastair.

--
http://alastairs-place.net



___

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: Problem printing offscreen PDFViews

2010-01-14 Thread Waldo Lee Sharvey
Tried that already, and it only lead to other weird stuff. Consider
this: If PDFView obeyed all of the normal laws Cocoa printing,
wouldn't PDFView's printWithInfo:autoRotate: be unnecessary?

Not that this really matters anymore, since I ended up taking the long
route and writing a custom NSView subclass with all the necessary
pagination/drawing methods implemented and using a NSPDFImageRep. I'm
now just curious as to why it didn't work.

-- Ilan


On Wed, Jan 13, 2010 at 7:26 PM, Kyle Sluder kyle.slu...@gmail.com wrote:
 Why are you using a different pattern for printing your PDF view than
 you are using for your regular view?  Use NSPrintOpertaion and
 -setShowPanels: as described in
 http://developer.apple.com/mac/library/documentation/cocoa/Conceptual/Printing/Tasks/UsingPrintPanel.html

 --Kyle Sluder

 On Wed, Jan 13, 2010 at 8:35 AM, Waldo Lee Sharvey
 waldoleeshar...@gmail.com wrote:
 I have a situation where I want to print a multi-page PDF. While I
 could use the PDFKit utility classes and/or quartz functions to get
 the information to manually write drawing/pagination code for a NSView
 subclass, I had thought that quicker alternative would be to create an
 off-screen PDFView and tell it to print itself. When I tried this
 solution, the print dialog didn't go away, all of the print settings
 controls on the right half of the print dialog disappeared, and the
 application froze.

 I then wrote a tiny test application with the following method that
 illustrates the problem. When the test program is compiled without the
 USE_PDF_VIEW preprocessor macro defined, the blank view displays fine.
 If USE_PDF_VIEW is defined, the document doesn't print, most of the
 print dialog controls disappear, and the app freezes. While I have
 other ways of accomplishing my goal, I'm curious as to why this
 shortcut doesn't work. Is there something about Cocoa drawing I still
 don't understand? Am I banging into Apple Voodoo Magic(tm) behind the
 scenes that makes PDFView behave in a completely different way than
 other NSViews?

 - (void)printMyStuff:(id)sender {

 NSPrintInfo *currInfo = [NSPrintInfo sharedPrintInfo];

 #ifdef USE_PDF_VIEW


        PDFView *pdfView = [[PDFView alloc] init];
        PDFDocument *pdfDoc = [[PDFDocument alloc] initWithURL:[NSURL
 fileURLWithPath:@/Users/wls/Documents/my_document.pdf]];
        [pdfView setDocument: pdfDoc];
        [pdfView printWithInfo:currInfo autoRotate:YES];


 #else

        NSView *myView = [[NSView alloc] initWithFrame:NSMakeRect(0, 0, 500, 
 500)];
        NSPrintOperation *myop = [NSPrintOperation
 printOperationWithView:myView printInfo:currInfo];
        [myop runOperation];


 #endif

 }
 ___

 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/kyle.sluder%40gmail.com

 This email sent to kyle.slu...@gmail.com


___

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


iPhone: UITableView with cells of varying heights

2010-01-14 Thread Eric E. Dolecki
I am pulling in an RSS feed, and each item has it's own summary of a varying
amount of text. I am using a table and presently setting the height of each
row the same to allow for the most text. This looks awful as some items have
a lot of empty space for it's row.

Is it possible to have a UILabel where I set numberOfLines = 0, set the
width, and have the height of the label expand vertically to contain all of
the text, and then use it's height to help determine the height the cell
itself needs to be? The result would be a UITableView with rows of varying
heights, perfectly framing each row's content.

I was using a UIWebView to display the summary since it came with tons of
html tags in it, but I've since just stripped all of the tags out of each
item's summary.

Thanks,
Eric
___

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: iPhone: UITableView with cells of varying heights

2010-01-14 Thread Luke the Hiesterman
Calculate label height with [NSString sizeWithFont:ForWidth:LineBreakMode:]. 
sizeWithFont:forWidth:lineBreakMode:

Assign cell row heights with [UITableViewDelegate 
tableView:heightForRowAtIndexPath:] – tableView:heightForRowAtIndexPath:

Luke

On Jan 14, 2010, at 6:46 AM, Eric E. Dolecki wrote:

 I am pulling in an RSS feed, and each item has it's own summary of a varying
 amount of text. I am using a table and presently setting the height of each
 row the same to allow for the most text. This looks awful as some items have
 a lot of empty space for it's row.
 
 Is it possible to have a UILabel where I set numberOfLines = 0, set the
 width, and have the height of the label expand vertically to contain all of
 the text, and then use it's height to help determine the height the cell
 itself needs to be? The result would be a UITableView with rows of varying
 heights, perfectly framing each row's content.
 
 I was using a UIWebView to display the summary since it came with tons of
 html tags in it, but I've since just stripped all of the tags out of each
 item's summary.
 
 Thanks,
 Eric
 ___
 
 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/luketheh%40apple.com
 
 This email sent to luket...@apple.com

___

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: iPhone: UITableView with cells of varying heights

2010-01-14 Thread Luke the Hiesterman
Hmm, those were supposed to be links at the end of the lines.

http://developer.apple.com/iphone/library/documentation/UIKit/Reference/NSString_UIKit_Additions/Reference/Reference.html#//apple_ref/doc/uid/TP40006893-CH3-SW7

http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UITableViewDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intfm/UITableViewDelegate/tableView:heightForRowAtIndexPath:

Luke

On Jan 14, 2010, at 6:56 AM, Luke the Hiesterman wrote:

 Calculate label height with [NSString sizeWithFont:ForWidth:LineBreakMode:]. 
 sizeWithFont:forWidth:lineBreakMode:
 
 Assign cell row heights with [UITableViewDelegate 
 tableView:heightForRowAtIndexPath:] – tableView:heightForRowAtIndexPath:
 
 Luke
 
 On Jan 14, 2010, at 6:46 AM, Eric E. Dolecki wrote:
 
 I am pulling in an RSS feed, and each item has it's own summary of a varying
 amount of text. I am using a table and presently setting the height of each
 row the same to allow for the most text. This looks awful as some items have
 a lot of empty space for it's row.
 
 Is it possible to have a UILabel where I set numberOfLines = 0, set the
 width, and have the height of the label expand vertically to contain all of
 the text, and then use it's height to help determine the height the cell
 itself needs to be? The result would be a UITableView with rows of varying
 heights, perfectly framing each row's content.
 
 I was using a UIWebView to display the summary since it came with tons of
 html tags in it, but I've since just stripped all of the tags out of each
 item's summary.
 
 Thanks,
 Eric
 ___
 
 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/luketheh%40apple.com
 
 This email sent to luket...@apple.com
 
 ___
 
 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/luketheh%40apple.com
 
 This email sent to luket...@apple.com

___

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: iPhone: UITableView with cells of varying heights

2010-01-14 Thread Eric E. Dolecki
I found a tutorial online just after I emailed this list. Thanks for the
links!

Eric

On Thu, Jan 14, 2010 at 9:57 AM, Luke the Hiesterman luket...@apple.comwrote:

 Hmm, those were supposed to be links at the end of the lines.


 http://developer.apple.com/iphone/library/documentation/UIKit/Reference/NSString_UIKit_Additions/Reference/Reference.html#//apple_ref/doc/uid/TP40006893-CH3-SW7


 http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UITableViewDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intfm/UITableViewDelegate/tableView:heightForRowAtIndexPath
 :

 Luke

 On Jan 14, 2010, at 6:56 AM, Luke the Hiesterman wrote:

  Calculate label height with [NSString
 sizeWithFont:ForWidth:LineBreakMode:]. sizeWithFont:forWidth:lineBreakMode:
 
  Assign cell row heights with [UITableViewDelegate
 tableView:heightForRowAtIndexPath:] – tableView:heightForRowAtIndexPath:
 
  Luke
 
  On Jan 14, 2010, at 6:46 AM, Eric E. Dolecki wrote:
 
  I am pulling in an RSS feed, and each item has it's own summary of a
 varying
  amount of text. I am using a table and presently setting the height of
 each
  row the same to allow for the most text. This looks awful as some items
 have
  a lot of empty space for it's row.
 
  Is it possible to have a UILabel where I set numberOfLines = 0, set the
  width, and have the height of the label expand vertically to contain all
 of
  the text, and then use it's height to help determine the height the cell
  itself needs to be? The result would be a UITableView with rows of
 varying
  heights, perfectly framing each row's content.
 
  I was using a UIWebView to display the summary since it came with tons
 of
  html tags in it, but I've since just stripped all of the tags out of
 each
  item's summary.
 
  Thanks,
  Eric
  ___
 
  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/luketheh%40apple.com
 
  This email sent to luket...@apple.com
 
  ___
 
  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/luketheh%40apple.com
 
  This email sent to luket...@apple.com




-- 
http://ericd.net
Interactive design and development
___

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: iCal-style NSTextFields

2010-01-14 Thread Brad Gibbs
I've been working through this a bit more.  To get bindings to work, I added 
the following to my custom textfield:

if (!bindingsDict) {
self.stringValue = newStringValue;
}

if (bindingsDict) {
NSString *boundObject = [bindingsDict 
valueForKey:@NSObservedObject];
NSString *boundKeyPath = [bindingsDict 
valueForKey:@NSObservedKeyPath];

[boundObject setValue:newStringValue forKeyPath:boundKeyPath];
}

[self.window endEditingFor:self];

There's a lot more to mimicking the look of iCal / AddressBook editing, though. 
 Both apps use attributed strings, and the text fields and borderless windows 
are sized to fit the attributed string (or the attributed placeholder string, 
if no string has been entered).  If the string being entered will exceed the 
width of the window that popped up, the window will begin to grow to 
accommodate the additional letters, and will push text in the main window to 
the side to make room once the enter button is pressed.

AddressBook-style editing with the plus and minus buttons to add or remove 
fields is also not insignificant.

On Jan 13, 2010, at 2:23 PM, Josh Abernathy wrote:

 This sounds more like a CoreData or general controller problem than anything 
 specific to iCal-style text fields. You might want to create a new thread for 
 this.
 
 
 On Jan 13, 2010, at 11:44 AM, Brad Gibbs wrote:
 
 I'm trying to implement this.
 
 I created a custom NSTextField subclass, called ICNTextField.  When an 
 ICNTextField instance receives a mouseDown event, it initializes a custom 
 NSWindow subclass with a borderless window mask.  In the window subclass, 
 I've overridden -canBecomeKeyWindow: so that it always returns yes.  
 
 When ICNTextField receives the controlTextDidEndEditing notification, it 
 takes the string value from the text field in the borderless window and 
 displays it properly, but the Core Data attribute to which the original text 
 field is bound does not update its value.
 
 I've looked into endEditing and endEditing:, nextKeyView and various forms 
 of commit, but can't seem to find a way to get the bindings to recognize the 
 new string value.  
 
 I'd like to do this in a generic fashion, so I can make any text field an 
 ICNTextField and know that its bound attributes will be updated without 
 having to write additional code for each text field.  Any help would be 
 appreciated. 
 
 
 On Jan 10, 2010, at 2:54 PM, Josh Abernathy wrote:
 
 If you're asking about the shadow, create a child window and move them to 
 that when they're editing.
 
 
 On Jan 10, 2010, at 11:56 AM, Seth Willits wrote:
 
 On Jan 10, 2010, at 11:49 AM, Ulai Beekam wrote:
 
 Go into iCal (in Snow Leopard) and create a new event and and then click 
 outside that event. Then double-click on that event and hit the Edit 
 button.
 
 In the window you see, you have some neat looking text fields that show 
 only text when not in focus but show you a white background with a 
 shadow effect when in edit mode.
 
 How can I make such text fields? Does anyone happen to have them 
 ready-made?
 
 They're just text fields. Change the background color, turn off the 
 border, and make them read-only when not in edit mode. 
 
 
 --
 Seth Willits
 
 
 
 ___
 
 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/joshaber%40gmail.com
 
 This email sent to josha...@gmail.com
 
 ___
 
 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/bradgibbs%40mac.com
 
 This email sent to bradgi...@mac.com
 
 ___
 
 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/joshaber%40gmail.com
 
 This email sent to josha...@gmail.com
 

___

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


NSTableView column bindings and deep key paths

2010-01-14 Thread Gerd Knops
I have a typical NSTableView setup where the column content is provided by an 
NSArrayController.

Now say a column is bound to arrayController.arrangedObjects key path a.b.c.d.

In this scenario if b changes (even in a KVO-complient way), it will still 
result in an NSInternalInconsistencyException 'Cannot remove an observer xxx 
for the key path c.d from old instance of b, most likely because the 
value for the key c has changed without an appropriate KVO notification being 
sent.'

I understand why this is happening (nothing is observing changes of b, so the 
actual observer is left dangling).

The question is how can I change my design to avoid this situation?


Thanks

Gerd

___

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: Snapshotting hidden UIViews

2010-01-14 Thread Michael Gardner
On Jan 13, 2010, at 10:30 PM, glenn andreas wrote:

 On Jan 13, 2010, at 9:46 PM, Michael Gardner gardne...@gmail.com wrote:
 
 On Jan 13, 2010, at 5:07 PM, glenn andreas wrote:
 
 
 On Jan 13, 2010, at 4:48 PM, Michael Gardner wrote:
 
 
 I also tried calling -drawRect: on my hidden view (after setting the 
 context with UIGraphicsBeginImageContext()), but it doesn't seem to do 
 anything.
 
 Many built in views do not draw anything at all (and have no useful 
 drawRect:) - all of their rendering is handled by the view's layer.
 
 Ah, that explains that. But I'd still very much like to know why the layer's 
 -renderInContext: doesn't work consistently when the view is hidden.
 
 
 Pure speculation, but a hidden view may not have a layer associated with it, 
 and things like subview layout aren't done for hidden views (why waste cycle 
 laying out the subviews if nobody will see it?). There are probably other 
 undocumented optimizations as well on hidden views, such as animations not 
 running, pending refreshes postponed, etc...  UIWebView is going to be 
 especially problematic, since it does a whole lot of things in the background 
 (such as loading needed images and other resources)

That still leaves the question of how to capture the contents of a UIView in an 
image when the view isn't visible.

By the way, I tried the trick Matt suggested earlier in the thread, by 
obscuring my view behind another one instead of making it hidden. It didn't 
work. Is UIKit smart enough to know that a view behind another (opaque) view is 
effectively hidden?

-Michael___

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: Trying to create an alias file by using the new NSURL methods available with Mac OS X 10.6 !

2010-01-14 Thread Shawn Erickson
Look at the following functions...

/*** FileSystem path conversion functions ***/

/* Extract the contents of the string as a NULL-terminated 8-bit
string appropriate for passing to POSIX APIs (for example, normalized
for HFS+).  The string is zero-terminated. false will be returned if
the conversion results don't fit into the buffer.  Use
CFStringGetMaximumSizeOfFileSystemRepresentation() if you want to make
sure the buffer is of sufficient length.
*/
CF_EXPORT
Boolean CFStringGetFileSystemRepresentation(CFStringRef string, char
*buffer, CFIndex maxBufLen) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;

/* Get the upper bound on the number of bytes required to hold the
file system representation for the string. This result is returned
quickly as a very rough approximation, and could be much larger than
the actual space required. The result includes space for the zero
termination. If you are allocating a buffer for long-term keeping,
it's recommended that you reallocate it smaller (to be the right size)
after calling CFStringGetFileSystemRepresentation().
*/
CF_EXPORT
CFIndex CFStringGetMaximumSizeOfFileSystemRepresentation(CFStringRef
string) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;

/* Create a CFString from the specified zero-terminated POSIX file
system representation.  If the conversion fails (possible due to bytes
in the buffer not being a valid sequence of bytes for the appropriate
character encoding), NULL is returned.
*/
CF_EXPORT
CFStringRef CFStringCreateWithFileSystemRepresentation(CFAllocatorRef
alloc, const char *buffer) AVAILABLE_MAC_OS_X_VERSION_10_4_AND_LATER;
___

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: Snapshotting hidden UIViews

2010-01-14 Thread Paul Sanders
You could try making it not opaque (i.e. have isOpaque return 
NO).  Then the view should get drawn, even if it is subsequently 
over-painted by another view positioned on top of it.  That's 
how it works in Cocoa, at least.  Calling setNeedsDisplay on the 
(common) parent view ought to do it but you will need to return 
to the run loop before anything actually happens of course.

Paul Sanders.

- Original Message - 
From: Michael Gardner gardne...@gmail.com
To: cocoa-dev@lists.apple.com
Sent: Thursday, January 14, 2010 5:22 PM
Subject: Re: Snapshotting hidden UIViews


By the way, I tried the trick Matt suggested earlier in the 
thread, by obscuring my view behind another one instead of 
making it hidden. It didn't work. Is UIKit smart enough to know 
that a view behind another (opaque) view is effectively hidden? 



___

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: Best practice example for a setup wizard?

2010-01-14 Thread Greg Guerin

Ian Piper wrote:

OK, perhaps I need to rethink how this works. Given that the  
underlying purpose is to authenticate the user to allow access to  
an encrypted database, would it make more sense for me to use the  
user's Mac OS X account credentials? Is there a way (I hesitate to  
use the phrase best practice again) for my program to  
authenticate the user that way?



It depends on what you mean by the user's account credentials, and  
how they fit with your database access controls.


It seems like Keychain Services may be appropriate.  It depends on  
exactly how your DB access-control works.  If it's password-based or  
encryption-key based, then your app can store and retrieve a specific  
keychain item (password or key).  Initially, if your item doesn't  
exist in the keychain, your app can prompt the user with a simple  
dialog.  After that, Keychain Services should take over the  
management and access-enforcement of the item itself.  Your app  
simply tries to read the item from the keychain, and either succeeds  
(so proceeds with database connection) or fails (so does something  
appropriate for that failure reason).


http://developer.apple.com/Mac/library/documentation/Security/ 
Conceptual/keychainServConcepts/02concepts/concepts.html


There's also this framework, wrapping the basic C functions in Obj-C:

http://sourceforge.net/projects/keychain/

There may be other frameworks or libs.  I used google keywords: mac  
os keychain objective-c


There's also a list dedicated to security questions:

http://lists.apple.com/mailman/listinfo/apple-cdsa

If Keychain Services isn't suitable, you'll have to be more specific  
about what the access-controls are, what authentication means, etc.


  -- GG

___

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: iPhone: UITableView with cells of varying heights

2010-01-14 Thread Eric E. Dolecki
Sure thing: http://www.cimgf.com/2009/09/23/uitableviewcell-dynamic-height/

On Thu, Jan 14, 2010 at 1:06 PM, Jack Carbaugh intrn...@aol.com wrote:

 Could you share the tutorial with the group please .. that way if someone
 else searches and finds this thread, they can continue to the tutorial.

 thanks!
 jack


 On Jan 14, 2010, at 10:05 AM, Eric E. Dolecki wrote:

  I found a tutorial online just after I emailed this list. Thanks for the
 links!

 Eric

 On Thu, Jan 14, 2010 at 9:57 AM, Luke the Hiesterman luket...@apple.com
 wrote:

  Hmm, those were supposed to be links at the end of the lines.



 http://developer.apple.com/iphone/library/documentation/UIKit/Reference/NSString_UIKit_Additions/Reference/Reference.html#/
 /apple_ref/doc/uid/TP40006893-CH3-SW7



 http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UITableViewDelegate_Protocol/Reference/Reference.html#/
 /apple_ref/occ/intfm/UITableViewDelegate/tableView:heightForRowAtIndexPath
 :

 Luke

 On Jan 14, 2010, at 6:56 AM, Luke the Hiesterman wrote:

  Calculate label height with [NSString

 sizeWithFont:ForWidth:LineBreakMode:].
 sizeWithFont:forWidth:lineBreakMode:


 Assign cell row heights with [UITableViewDelegate

 tableView:heightForRowAtIndexPath:] – tableView:heightForRowAtIndexPath:


 Luke

 On Jan 14, 2010, at 6:46 AM, Eric E. Dolecki wrote:

  I am pulling in an RSS feed, and each item has it's own summary of a

 varying

 amount of text. I am using a table and presently setting the height of

 each

 row the same to allow for the most text. This looks awful as some items

 have

 a lot of empty space for it's row.

 Is it possible to have a UILabel where I set numberOfLines = 0, set the
 width, and have the height of the label expand vertically to contain
 all

 of

 the text, and then use it's height to help determine the height the cell
 itself needs to be? The result would be a UITableView with rows of

 varying

 heights, perfectly framing each row's content.

 I was using a UIWebView to display the summary since it came with tons

 of

 html tags in it, but I've since just stripped all of the tags out of

 each

 item's summary.

 Thanks,
 Eric
 ___

 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/luketheh%40apple.com

 This email sent to luket...@apple.com


 ___

 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/luketheh%40apple.com

 This email sent to luket...@apple.com





 --
 http://ericd.net
 Interactive design and development
 ___

 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/intrntmn%40aol.com

 This email sent to intrn...@aol.com




-- 
http://ericd.net
Interactive design and development
___

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


IBLibraryObjectTemplate

2010-01-14 Thread David Blanton
This appeared automagically in my .xib. Can anyone tell me what this  
is and how it got there:


-db

2010-01-14 11:50:44.021 Customize It[9646:813] Unknown class  
IBLibraryObjectTemplate in Interface Builder file.

___

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: Almost! to the end

2010-01-14 Thread John Love
I tracked down NSException.  Appscript posts a NSRangeException Exception 
which applies in my case.  So, a simple @try .. @catch pair around each row 
does the trick.

Thanks again and again ..

John Love

=

On Jan 12, 10, at 10:33 AM, John Love wrote:

 Thanks to many, many folk, I am at the very end of my project .. calculating 
 an Excel spreadsheet, cell by cell .. with the calculations done in a 
 background thread .. using either +detachNewThreadSelector and/or NSPorts 
 with NSPortMessages, or even a NSOperationQueue.  Tried all 3 approaches just 
 for the sake of learning, and they all work.
 
 It's definitely been quite an education for me and quite an exercise in 
 patience for all you folks.
 
 Oh, one more thing .. I use HAS's appscript application, ASTranslate, to 
 convert my previous! AppleScript Studio code to Cocoa .. and it really works.
 
 After completing each row's worth of calculations, I test for the existence 
 of both Excel and the spreadsheet .. in case the user prematurely quits the 
 app or closes the spreadsheet .. and it works like a charm .. if quitting or 
 closing, a message appears in my doc window.
 
 EXCEPT, if the user quits the app or closes the spreadsheet in the middle of 
 completing the calculations for each row before I have a chance to do the 
 appropriate testing.  Even if I burden my code by testing before each cell in 
 the entire row, I still (theoretically) could encounter a quit or a close in 
 the middle of a cell's calculation.  Clearly, getting or setting the value in 
 a cell of a spreadsheet doc that is closed crashes my app.
 
 My very initial thoughts focus on NSError, except HAS's ASTranslate app does 
 not seem to include a built in NSError object, such as is passed to 
 NSDocument's -readFromURL.
 
 Any help out there for this worst-case scenario?  Thanks in advance.
 
 John Love
 Touch the Future! Teach!
 

John Love
Touch the Future! Teach!


___

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


Core Video CIFilters/ playback / compression suggestions?

2010-01-14 Thread Travis Kirton
Hi,

We're working with Core Video to play back videos @ 1024 x 768 resolution.
The videos are stacked on top of one another and revealed as a user draws over 
top of them. To achieve this drawing into the stack of videos, we're 
filtering using CIImage to create alpha masks over top of an individual video.

Playback is very choppy, and we haven't been able to determine if it's the 
compression we're using (i.e. the video assets themselves) or anything to do 
with the combination of Core Video, Core Image  the 1024x768 format.

Some problems we're facing is that even if we're only using 2 videos and not 
doing any filtering, the videos lag. 

We initially we compressed our original files out, so that the overall file 
size is much smaller. Even still, with 2 movies @ approx. 50MB each we're 
having problems.

Using TOP, from terminal, to overall system usage we're getting results that 
the system is chewing up to 180% cpu.

We'd be really greatful for any help on whether this is an asset, a code, or a 
compression issue (or all three).

Cheers,
Travis___

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


Sending archived objects to a child process via NSPipe

2010-01-14 Thread Christian Ziegler
Hi all!

It is probably simple, but I can't figure it out atm. I  want to send an 
archived object through an NSPipe to a child process. As long as there is only 
a single object in the pipe at a given time the receiver can unarchive the 
object properly. However, once I send another object to the pipe, unarchiving 
raises the error uncomprehensible archive. I played around with all three 
read methods but nothing worked. How can I distinguish between several objects 
in the pipe? Maybe I can write an EOF indicator to the pipe somehow?

Cheers,
Chris
___

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: Sending archived objects to a child process via NSPipe

2010-01-14 Thread Stephen J. Butler
On Thu, Jan 14, 2010 at 1:11 PM, Christian Ziegler chris.zieg...@me.com wrote:
 Hi all!

 It is probably simple, but I can't figure it out atm. I  want to send an 
 archived object through an NSPipe to a child process. As long as there is 
 only a single object in the pipe at a given time the receiver can unarchive 
 the object properly. However, once I send another object to the pipe, 
 unarchiving raises the error uncomprehensible archive. I played around with 
 all three read methods but nothing worked. How can I distinguish between 
 several objects in the pipe? Maybe I can write an EOF indicator to the pipe 
 somehow?

Pipes are implemented in the kernel by a fixed sized buffer. I don't
remember exactly how large it is, but let's say it's 4K. Any data sent
under 4K can be transmitted at once, but data over 4K will come in
multiple chunks. It's your job on the receiver end to store those
chunks until you have it all. Then do the unarchiving.

My guess is that your single archive is less than 4K, but two archives
together is more. What you need to do is develop a protocol to send
data over the pipe. Very simply, you could send a 32bit integer first
indicating how many bytes are in the archive. Then read until you get
that many from the pipe. Repeat.

Keeping in mind that I used 4K in my explanation, but the actually
pipe buffer may be more or less.
___

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


Cancelable NSBlockOperations

2010-01-14 Thread Jamie Hardt
A quick question...

How does one support -cancel in an NSBlockOperation?  Testing [NSThread 
isCancelled] doesn't appear to work. 

Jamie___

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: UITableView with cells of varying heights

2010-01-14 Thread Matt Neuburg
On Thu, 14 Jan 2010 09:46:06 -0500, Eric E. Dolecki edole...@gmail.com
said:
The result would be a UITableView with rows of varying
heights, perfectly framing each row's content.

This is certainly possible, since I did in my TidBITS News app (free, so you
can take a look at the result). Basically I'm simply calculating the heights
of the two UILabel field contents, setting the heights and positions of the
UILabels accordingly, then setting the height of the cell itself. m.

-- 
matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings



___

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: NSTableView column bindings and deep key paths

2010-01-14 Thread Quincey Morris
On Jan 14, 2010, at 08:47, Gerd Knops wrote:

 I have a typical NSTableView setup where the column content is provided by an 
 NSArrayController.
 
 Now say a column is bound to arrayController.arrangedObjects key path a.b.c.d.
 
 In this scenario if b changes (even in a KVO-complient way), it will still 
 result in an NSInternalInconsistencyException 'Cannot remove an observer xxx 
 for the key path c.d from old instance of b, most likely because the 
 value for the key c has changed without an appropriate KVO notification 
 being sent.'
 
 I understand why this is happening (nothing is observing changes of b, so 
 the actual observer is left dangling).
 
 The question is how can I change my design to avoid this situation?

But something *is* observing changes to b -- the KVO mechanism. Whether it 
literally adds an observation of every object along the key path, or whether it 
has private methods for observing the whole string of objects in an optimized 
way, it doesn't matter.

The first question to be answered is: Are you *sure* that the c property of 
the b objects is updated KVO-compliantly? The error message is telling you 
that it is apparently not.


___

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: Snapshotting hidden UIViews

2010-01-14 Thread Matt Neuburg
On Thu, 14 Jan 2010 11:22:19 -0600, Michael Gardner gardne...@gmail.com
said:
By the way, I tried the trick Matt suggested earlier in the thread, by
obscuring my view behind another one instead of making it hidden. It didn't
work. 

Yes, because that isn't what I said to do. And since you're on iPhone, what
I suggested doing (covering the window with another *window*) probably isn't
even possible. Sorry about that. In the iPhone version of my JACT Vocab app,
I rewrote the entire animation approach so as not to need a snapshot at
all... m.

-- 
matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings



___

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: NSArrayControllers not repopulating after NSPersistentDocument load

2010-01-14 Thread Quincey Morris
On Jan 13, 2010, at 16:12, Daniel Wambold wrote:

 Nevertheless, I agree that the situation seems to suggest that the File  
 Open (load) method that is being invoked by the NSPersistentDocument is 
 creating a new managed object context that is not being attached to the 
 controller. Despite my efforts to force this issue (such as posting the new 
 MOC in a notification object), it fails. I assume this is because I was using 
 the NSPersistentDocument persistent store assignment method, which occurs 
 before the Nib is reconstituted, meaning that the value is lost in the 
 initialization.

The next step is to narrow down the problem to a single area. ATM, we don't 
even know if it's related to nib loading or to Core Data. You may need to 
simplify your code to find out.

 I don't know if this is a clue, but I have never been able to get this 
 program to respond to the request for [[NSApp delegate] 
 managedObjectContext]. I DO have a delegate to the Application, but I have 
 not yet done anything with it. Could this be part of the problem?

The application delegate has no inherent knowledge of managed object contexts, 
and anyway -- in the case of a NSPersistentDocument-based application -- the 
MOC is per-document, not per-application. ' [[NSApp delegate] 
managedObjectContext]' isn't well-defined in such 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 arch...@mail-archive.com


Re: Sending archived objects to a child process via NSPipe

2010-01-14 Thread Christian Ziegler
Ahh yeah, the buffer, totally forgot about that. Thanks for the tip,  
I'm sure I'll figure it out now.


Cheers,
Chris



On 14.01.2010, at 20:23, Stephen J. Butler  
stephen.but...@gmail.com wrote:


On Thu, Jan 14, 2010 at 1:11 PM, Christian Ziegler chris.zieg...@me.com 
 wrote:

Hi all!

It is probably simple, but I can't figure it out atm. I  want to  
send an archived object through an NSPipe to a child process. As  
long as there is only a single object in the pipe at a given time  
the receiver can unarchive the object properly. However, once I  
send another object to the pipe, unarchiving raises the error  
uncomprehensible archive. I played around with all three read  
methods but nothing worked. How can I distinguish between several  
objects in the pipe? Maybe I can write an EOF indicator to the pipe  
somehow?


Pipes are implemented in the kernel by a fixed sized buffer. I don't
remember exactly how large it is, but let's say it's 4K. Any data sent
under 4K can be transmitted at once, but data over 4K will come in
multiple chunks. It's your job on the receiver end to store those
chunks until you have it all. Then do the unarchiving.

My guess is that your single archive is less than 4K, but two archives
together is more. What you need to do is develop a protocol to send
data over the pipe. Very simply, you could send a 32bit integer first
indicating how many bytes are in the archive. Then read until you get
that many from the pipe. Repeat.

Keeping in mind that I used 4K in my explanation, but the actually
pipe buffer may be more or less.

___

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: IBLibraryObjectTemplate

2010-01-14 Thread Kevin Cathey
The IBLibraryObjectTemplate is part of InterfaceBuilderKit, the framework used 
to create plugins for Interface Builder. Each IBLibraryObjectTemplate 
corresponds to an entry that appears in the library at runtime. For more, see:
http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/IBPlugInGuide/Plug-inQuickStart/Plug-inQuickStart.html#//apple_ref/doc/uid/TP40004323-CH9-SW9

What has probably happened in your case is that you have accidentally added an 
IBLibraryObjectTemplate object to one of your nibs, and not linked against 
InterfaceBuilderKit, hence the warning about the unknown class. I'm assuming 
you don't want the IBLibraryObjectTemplate, so to get rid of it, just find the 
file with the stray IBLibraryObjectTemplate, delete, and you'll be good to go. 
A quick way to do this is: use the search field in Interface Builder to search 
for IBLibraryObjectTemplate, and that will show you which objects (if any) 
are library object templates.

Kevin


On 14 Jan 2010, at 12:51, David Blanton wrote:

 This appeared automagically in my .xib. Can anyone tell me what this is and 
 how it got there:
 
 -db
 
 2010-01-14 11:50:44.021 Customize It[9646:813] Unknown class 
 IBLibraryObjectTemplate in Interface Builder file.
 ___
 
 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/cathey%40apple.com
 
 This email sent to cat...@apple.com

___

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


Job Posting: Senior Software Engineer, Apple Inc.

2010-01-14 Thread Joel Levin
http://jobs.apple.com/index.ajs?BID=1method=mExternal.showJobRID=42178CurrentPage=1

Apple's Internet Technology System's has an immediate opening for Sr Software 
Engineer (iPhone Development). Our group's focus is on design and development 
of web and mobile solutions for all business areas. The position will provide 
architecture, design, development and leadership across multiple projects.

As an engineer on the iPhone team, your responsibilities will range from 
implementing new features to fixing bugs and improving performance. You should 
have a good understanding of object-oriented software design and 5+ years of 
programming, a solid C programming background, good debugging skills and an 
eagerness to work hard and learn a lot.

Responsibilities include:

Write software code based on functional specification and technical design; 
adhere to development techniques and standards. Conceive and document technical 
design for software in development; adhere to architectural standards and 
develop designs that consider impact with other aspects of the software and 
appropriately leverage existing code

Produce and review High-Level and Detailed Technical Designs following Apple 
standards for a range of subject areas (e.g., requirements, data access 
strategy, business uses and usage)

Keep up to date on new technologies and offer analysis of present or future 
benefit to Apple

Facilitate design walkthroughs with IT and business staff to validate solutions 
against business requirements and IT architecture

Independently analyze and resolve large, complex, high impact production 
problems, assessing alternatives as appropriate and implementing long-term 
solutions. Provide direction and mentorship to less experienced staff.

Leverage technology advances through tactical and strategic technology 
solutions, reference architectures, frameworks, and components

Ensure functional requirements are successfully implemented in the business 
domain/object model; identify the techniques and technologies that should be 
applied at the application level; define the system and operational 
requirements that the technical infrastructure must support

* BSCS or equivalent.
* At least 5 years experience in software development.
* Proven experience with Cocoa or other object oriented application frameworks
* Strong algorithmic, data structure and object oriented programming skills
* Strong debugging skills.
* Strong communication skills.
* API and framework design skills
* Track record of innovation and excellence in earlier assignments.
* Experience working in a team environment, and demonstrated potential to lead 
a technical team.
* Familiarity with web protocols and standards, including HTTP, TCP, HTML, 
JavaScript, RSS, XML.

___

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


NSDocument

2010-01-14 Thread David Blanton
When my document based app starts up the awakeFromNib method in my  
NSDocument subclass is called.


When I choose Open a new NSDocument is instanced but this does not  
call awakeFromNib.


Am I missing a setting?

I need awakeFromNib to be called for any instance on my NSDocument  
sublass.


I am in dire straits on this on,  any help ...appreciated.

-db


___

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: Cancelable NSBlockOperations

2010-01-14 Thread Mike Abdullah

On 14 Jan 2010, at 19:30, Jamie Hardt wrote:

 A quick question...
 
 How does one support -cancel in an NSBlockOperation?  Testing [NSThread 
 isCancelled] doesn't appear to work. 

Because it's the block, not the thread that gets 
cancelled___

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: Cancelable NSBlockOperations

2010-01-14 Thread Nick Zitzmann

On Jan 14, 2010, at 12:30 PM, Jamie Hardt wrote:

 How does one support -cancel in an NSBlockOperation?  Testing [NSThread 
 isCancelled] doesn't appear to work. 

The same way you do it with NSInvocationOperations - pass in the operation as 
an argument to the block and check the object's cancellation state using that 
argument.

Nick Zitzmann
http://www.chronosnet.com/

___

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: Cancelable NSBlockOperations

2010-01-14 Thread Jamie Hardt
On Jan 14, 2010, at 11:59 AM, Nick Zitzmann wrote:

 On Jan 14, 2010, at 12:30 PM, Jamie Hardt wrote:
 
 How does one support -cancel in an NSBlockOperation?  Testing [NSThread 
 isCancelled] doesn't appear to work. 
 
 The same way you do it with NSInvocationOperations - pass in the operation as 
 an argument to the block and check the object's cancellation state using that 
 argument.

The block that NSBlockOperation takes is (void)^(void), do you mean I have to 
declare it outside of the block scope and let the block copy the reference when 
it invokes?

Jamie___

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: Cancelable NSBlockOperations

2010-01-14 Thread Nick Zitzmann

On Jan 14, 2010, at 1:02 PM, Jamie Hardt wrote:

 The block that NSBlockOperation takes is (void)^(void), do you mean I have to 
 declare it outside of the block scope and let the block copy the reference 
 when it invokes?

Sorry, forgot that block operations, unlike invocation operations, don't take 
arguments. (Guess which one I use more often?) Yes, I'd try what you're 
proposing.

Nick Zitzmann
http://www.chronosnet.com/

___

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


NSArrayController Conceptual Problem

2010-01-14 Thread Richard Somers
I have a Core Data document based application. In the data model there  
are five entities.


Currently I have a inspector panel with five NSArrayControllers, one  
for each entity. The panel works well but currently all user  
interaction is confined to the panel itself.


The primary user interface however is a custom view where the model  
objects are presented to the user all mixed up and in random locations  
like in a graphics application. The user needs to select one of these  
objects and then do something with it.


Here is the issue. There is a tension between the inspector panel and  
the primary view. The inspector panel wants one array controller per  
entity. The primary view wants a single array controller.


A single array controller would work great for selection in the  
primary view. But how would you get one array controller to work for  
five entities?


Multiple array controllers works great for the inspector but the  
primary view would need query the selected object and then send a  
message to the proper array controller.


I am having a difficult time jumping from the simplified tutorials and  
sample code to my specific application.


So which direction do I head?

--Richard

___

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: Cancelable NSBlockOperations

2010-01-14 Thread Jamie Hardt
On Jan 14, 2010, at 12:07 PM, Nick Zitzmann wrote:

 Sorry, forgot that block operations, unlike invocation operations, don't take 
 arguments. (Guess which one I use more often?) Yes, I'd try what you're 
 proposing.

It was a good though, but doing something like this...

NSBlockOperation *b = [NSBlockOperation blockOperationWithBlock:^{
  
  /* do stuff */
  
  if ([b isCancelled]) {
  
/* clean up and rejoin */

  }
}];

[queue addOperation:b];

...fails horribly.  The debugger looks strange, I can't make sense of 
it.___

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: Cancelable NSBlockOperations

2010-01-14 Thread Nick Zitzmann

On Jan 14, 2010, at 1:15 PM, Jamie Hardt wrote:

 ...fails horribly.  The debugger looks strange, I can't make sense of it.

What fails horribly, creating the block or adding it? More details, please.

Nick Zitzmann
http://www.chronosnet.com/

___

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: NSDocument

2010-01-14 Thread Quincey Morris
On Jan 14, 2010, at 11:57, David Blanton wrote:

 When my document based app starts up the awakeFromNib method in my NSDocument 
 subclass is called.
 
 When I choose Open a new NSDocument is instanced but this does not call 
 awakeFromNib.
 
 Am I missing a setting?
 
 I need awakeFromNib to be called for any instance on my NSDocument sublass.

'[NSDocument awakeFromNib]' is invoked because (or when, if you prefer) the 
document is File's Owner for the associated nib file. Your symptoms would 
suggest that it's being set as File's Owner when a File - New... is done 
(since that's what you get for free when the application starts up) but not 
when a File - Open... is done. Is it possible there are two nib files being 
used in these two situations?

If you've set the document's window controller as File's Owner, then *it* will 
get the 'awakeFromNib' instead of the document.

Also, as usual when an application mysteriously fails to do something, it's 
vital to check the log for exception error messages -- something I typically 
forget to do.

Does any of that suggest anything helpful?


___

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: NSArrayController Conceptual Problem

2010-01-14 Thread Quincey Morris
On Jan 14, 2010, at 12:10, Richard Somers wrote:

 I have a Core Data document based application. In the data model there are 
 five entities.
 
 Currently I have a inspector panel with five NSArrayControllers, one for each 
 entity. The panel works well but currently all user interaction is confined 
 to the panel itself.
 
 The primary user interface however is a custom view where the model objects 
 are presented to the user all mixed up and in random locations like in a 
 graphics application. The user needs to select one of these objects and then 
 do something with it.
 
 Here is the issue. There is a tension between the inspector panel and the 
 primary view. The inspector panel wants one array controller per entity. The 
 primary view wants a single array controller.
 
 A single array controller would work great for selection in the primary view. 
 But how would you get one array controller to work for five entities?
 
 Multiple array controllers works great for the inspector but the primary view 
 would need query the selected object and then send a message to the proper 
 array controller.

How about using a sixth array controller for the primary view? It would, of 
course, be in class mode, not entity mode, and would be bound to a NSArray of 
the other 5 controllers -- an immutable array property of (likely) your window 
controller, rather than your data model. Then the primary view would refer to 
its (single) array controller of interest as 'sixthArrayController.selection', 
while the inspector would continue referring to the other five array 
controllers directly.

You say nothing that suggests the inspector needs to know which is the selected 
item in the primary view, but if it needs to know it should be able to do so 
from 'sixthArrayController.selection', or something derived from it.


___

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: Cancelable NSBlockOperations

2010-01-14 Thread Michael Ash
On Thu, Jan 14, 2010 at 3:15 PM, Jamie Hardt jamieha...@gmail.com wrote:
 On Jan 14, 2010, at 12:07 PM, Nick Zitzmann wrote:

 Sorry, forgot that block operations, unlike invocation operations, don't 
 take arguments. (Guess which one I use more often?) Yes, I'd try what you're 
 proposing.

 It was a good though, but doing something like this...

 NSBlockOperation *b = [NSBlockOperation blockOperationWithBlock:^{

      /* do stuff */

      if ([b isCancelled]) {

        /* clean up and rejoin */

      }
 }];

 [queue addOperation:b];

 ...fails horribly.  The debugger looks strange, I can't make sense of it.

Despite how it may look, the order of operations screws you up.

The block gets created first, and only after that happens does the
assignment to b occur. But creating the block copies the value of b.
Because that copy happens before initialization, you get the old,
uninitialized, garbage value of b.

It's easy to fix, though. Just make it so that the block can follow
changes to the value of b that happen after the block is created, by
declaring b with the __block qualifier.

Mike
___

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: Trying to create an alias file by using the new NSURL methods available with Mac OS X 10.6 !

2010-01-14 Thread Sean McBride
On 1/14/10 9:56 AM, rohan a said:

Should I then use kCFStringEncodingUTF8 in this case ?

With NDAlias your function would look like:

int CreateAlias(const char *target, const char *aliasname)
{
 NSString* path = [NSFileManager stringWithFileSystemRepresentation:target
  length:strlen(target)];

 NDAlias* alias = [NDAlias aliasWithPath:path];
}

--

Sean McBride, B. Eng s...@rogue-research.com
Rogue Researchwww.rogue-research.com
Mac Software Developer  Montréal, Québec, Canada


___

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: NSDocument

2010-01-14 Thread Matt Neuburg
On Thu, 14 Jan 2010 12:57:57 -0700, David Blanton aired...@tularosa.net
said:
When my document based app starts up the awakeFromNib method in my
NSDocument subclass is called.

When I choose Open a new NSDocument is instanced but this does not
call awakeFromNib.

Am I missing a setting?

I need awakeFromNib to be called for any instance on my NSDocument
sublass.

I am in dire straits on this on,  any help ...appreciated.

In a standard doc-based app, there is no NSDocument instance in the nib. So
naturally no NSDocument instance ever awakes from a nib. So naturally
awakeFromNib is never called. The fact that your NSDocument subclass's
awakeFromNib is *ever* called suggests that you have already done something
very odd.

Of course I could just be confused, but it sounds to me like you might be
asking the wrong question. Is the question how to perform initializations as
a document is opened? The Document-Based Applications Overview contains a
discussion of this question.

m.

-- 
matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings



___

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: NSDocument

2010-01-14 Thread David Blanton
Thank you for commenting but now I am really confused.  When a project  
is created from the document based template it contains files  
MyDocument.h and MyDocument.m which define the interface and  
implementation for a class MyDocument that inherits from NSDocument.


Whne built and and run if any one of many init methods are implemented  
and awakeFromNib is implemented these are called.


So, I do not understand what you have said.

- db

On Jan 14, 2010, at 1:53 PM, Matt Neuburg wrote:

On Thu, 14 Jan 2010 12:57:57 -0700, David Blanton aired...@tularosa.net 


said:

When my document based app starts up the awakeFromNib method in my
NSDocument subclass is called.

When I choose Open a new NSDocument is instanced but this does not
call awakeFromNib.

Am I missing a setting?

I need awakeFromNib to be called for any instance on my NSDocument
sublass.

I am in dire straits on this on,  any help ...appreciated.


In a standard doc-based app, there is no NSDocument instance in the  
nib. So

naturally no NSDocument instance ever awakes from a nib. So naturally
awakeFromNib is never called. The fact that your NSDocument subclass's
awakeFromNib is *ever* called suggests that you have already done  
something

very odd.

Of course I could just be confused, but it sounds to me like you  
might be
asking the wrong question. Is the question how to perform  
initializations as
a document is opened? The Document-Based Applications Overview  
contains a

discussion of this question.

m.

--
matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings







___

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: NSDocument

2010-01-14 Thread David Blanton
Only one nib (xib) that was created  (MyDocument.xib) when the project  
was created form the document based app template.


I am looking at the Open as Files Owner ... hmm not sure.

Thanks.

-db
On Jan 14, 2010, at 1:27 PM, Quincey Morris wrote:


On Jan 14, 2010, at 11:57, David Blanton wrote:

When my document based app starts up the awakeFromNib method in my  
NSDocument subclass is called.


When I choose Open a new NSDocument is instanced but this does not  
call awakeFromNib.


Am I missing a setting?

I need awakeFromNib to be called for any instance on my NSDocument  
sublass.


'[NSDocument awakeFromNib]' is invoked because (or when, if you  
prefer) the document is File's Owner for the associated nib file.  
Your symptoms would suggest that it's being set as File's Owner when  
a File - New... is done (since that's what you get for free when  
the application starts up) but not when a File - Open... is done.  
Is it possible there are two nib files being used in these two  
situations?


If you've set the document's window controller as File's Owner, then  
*it* will get the 'awakeFromNib' instead of the document.


Also, as usual when an application mysteriously fails to do  
something, it's vital to check the log for exception error messages  
-- something I typically forget to do.


Does any of that suggest anything helpful?


___

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/airedale%40tularosa.net

This email sent to aired...@tularosa.net




___

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


Dead iPhone Simulator :-(

2010-01-14 Thread Michael Rogers
I'm running Mac OS X 10.6.2, and just installed the iPhone SDK 3.1.2.  When I 
launch anything in the simulator, it crashes, and I get a message complaining 
about the Telephony state (which I believe is California :-)

Jan 14 15:25:01 michael-rogerss-macbook-pro SpringBoard[17946]: Unable to 
create CFServerConnection. Telephony state may be incorrect.
Jan 14 15:25:01 michael-rogerss-macbook-pro SpringBoard[17946]: Launchd 
returned an unexpected type or didn't return a value for job label 
UIKitApplication:com.apple.mobilesafari[0xfe93] with job key PID
Jan 14 15:25:01 michael-rogerss-macbook-pro SpringBoard[17946]: Unable to 
create CFServerConnection. Telephony state may be incorrect.

The example above was when I clicked on Safari.

Has anybody seen this, or have any idea what's going on?  I don't want to file 
a bug report, because I'm sure this is not a widespread phenomenon (and I need 
to get this fixed ASAP).

TIA for any info,

Michael
--
Dr. Michael Rogers
Angel Flight Pilot  Damfino
Assistant Professor, Computer Science  Information Systems
Northwest Missouri State University
Cell:  309-825-6454;  Work:  660-562-1551;  IM:  mprog...@mac.com



___

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: IBLibraryObjectTemplate

2010-01-14 Thread David Blanton

Well here it is:

inline: Picture 1.png



and there is no way to delete it.

Delete in the Edit menu is disabled, delete key does not do it ...

How does one delete this ?

-db
On Jan 14, 2010, at 12:53 PM, Kevin Cathey wrote:

The IBLibraryObjectTemplate is part of InterfaceBuilderKit, the  
framework used to create plugins for Interface Builder. Each  
IBLibraryObjectTemplate corresponds to an entry that appears in the  
library at runtime. For more, see:
http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/IBPlugInGuide/Plug-inQuickStart/Plug-inQuickStart.html#/ 
/apple_ref/doc/uid/TP40004323-CH9-SW9


What has probably happened in your case is that you have  
accidentally added an IBLibraryObjectTemplate object to one of your  
nibs, and not linked against InterfaceBuilderKit, hence the warning  
about the unknown class. I'm assuming you don't want the  
IBLibraryObjectTemplate, so to get rid of it, just find the file  
with the stray IBLibraryObjectTemplate, delete, and you'll be good  
to go. A quick way to do this is: use the search field in Interface  
Builder to search for IBLibraryObjectTemplate, and that will show  
you which objects (if any) are library object templates.


Kevin


On 14 Jan 2010, at 12:51, David Blanton wrote:

This appeared automagically in my .xib. Can anyone tell me what  
this is and how it got there:


-db

2010-01-14 11:50:44.021 Customize It[9646:813] Unknown class  
IBLibraryObjectTemplate in Interface Builder file.

___

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/cathey%40apple.com

This email sent to cat...@apple.com






___

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: Dead iPhone Simulator :-(

2010-01-14 Thread Kyle Sluder
1. Try wiping ~/Library/iPhone Simulator.
2. This mailing list is not a technical support hotline.
3. This mailing list is about Cocoa. Developer tools discussion
belongs elsewhere, like xcode-users or the Developer Forums.

--Kyle Sluder

On Thu, Jan 14, 2010 at 1:27 PM, Michael Rogers mprog...@mac.com wrote:
 I'm running Mac OS X 10.6.2, and just installed the iPhone SDK 3.1.2.  When I 
 launch anything in the simulator, it crashes, and I get a message complaining 
 about the Telephony state (which I believe is California :-)

 Jan 14 15:25:01 michael-rogerss-macbook-pro SpringBoard[17946]: Unable to 
 create CFServerConnection. Telephony state may be incorrect.
 Jan 14 15:25:01 michael-rogerss-macbook-pro SpringBoard[17946]: Launchd 
 returned an unexpected type or didn't return a value for job label 
 UIKitApplication:com.apple.mobilesafari[0xfe93] with job key PID
 Jan 14 15:25:01 michael-rogerss-macbook-pro SpringBoard[17946]: Unable to 
 create CFServerConnection. Telephony state may be incorrect.

 The example above was when I clicked on Safari.

 Has anybody seen this, or have any idea what's going on?  I don't want to 
 file a bug report, because I'm sure this is not a widespread phenomenon (and 
 I need to get this fixed ASAP).

 TIA for any info,

 Michael
 --
 Dr. Michael Rogers
 Angel Flight Pilot  Damfino
 Assistant Professor, Computer Science  Information Systems
 Northwest Missouri State University
 Cell:  309-825-6454;  Work:  660-562-1551;  IM:  mprog...@mac.com



 ___

 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/kyle.sluder%40gmail.com

 This email sent to kyle.slu...@gmail.com

___

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: Dead iPhone Simulator :-(

2010-01-14 Thread Ricky Sharp

On Jan 14, 2010, at 3:27 PM, Michael Rogers wrote:

 I'm running Mac OS X 10.6.2, and just installed the iPhone SDK 3.1.2.  When I 
 launch anything in the simulator, it crashes, and I get a message complaining 
 about the Telephony state (which I believe is California :-)
 
 Jan 14 15:25:01 michael-rogerss-macbook-pro SpringBoard[17946]: Unable to 
 create CFServerConnection. Telephony state may be incorrect.

This is harmless; I get this all the time too.

 Jan 14 15:25:01 michael-rogerss-macbook-pro SpringBoard[17946]: Launchd 
 returned an unexpected type or didn't return a value for job label 
 UIKitApplication:com.apple.mobilesafari[0xfe93] with job key PID

I didn't get this one though when launching Safari.

You should follow-up though on the dedicated iPhone dev forums, or possibly the 
xcode mailing list.

___
Ricky A. Sharp mailto:rsh...@instantinteractive.com
Instant Interactive(tm)   http://www.instantinteractive.com



___

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: NSDocument

2010-01-14 Thread Charles Jenkins
I'm a noob, but I'm gonna give my interpretation anyway and let the 
experts have a chance to correct my misunderstanding.


I think Matt means that if you use IB to look at your MyDocument.nib (or 
.xib), in the window where you see File's Owner and other stuff, you 
should NOT see another NSObject whose Class is set to 'MyDocument'. If 
you have that, then your app will instantiate MyDocument, which will 
load the NIB file, which will instantiate another MyDocument--and 
weirdness ensues.


On 2010-01-14 16:19, David Blanton wrote:
Thank you for commenting but now I am really confused.  When a project 
is created from the document based template it contains files 
MyDocument.h and MyDocument.m which define the interface and 
implementation for a class MyDocument that inherits from NSDocument.


Whne built and and run if any one of many init methods are implemented 
and awakeFromNib is implemented these are called.


So, I do not understand what you have said.

- db

On Jan 14, 2010, at 1:53 PM, Matt Neuburg wrote:

On Thu, 14 Jan 2010 12:57:57 -0700, David Blanton 
aired...@tularosa.net

said:

When my document based app starts up the awakeFromNib method in my
NSDocument subclass is called.

When I choose Open a new NSDocument is instanced but this does not
call awakeFromNib.

Am I missing a setting?

I need awakeFromNib to be called for any instance on my NSDocument
sublass.

I am in dire straits on this on,  any help ...appreciated.


In a standard doc-based app, there is no NSDocument instance in the 
nib. So

naturally no NSDocument instance ever awakes from a nib. So naturally
awakeFromNib is never called. The fact that your NSDocument subclass's
awakeFromNib is *ever* called suggests that you have already done 
something

very odd.

Of course I could just be confused, but it sounds to me like you 
might be
asking the wrong question. Is the question how to perform 
initializations as
a document is opened? The Document-Based Applications Overview 
contains a

discussion of this question.

m.

--
matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings







___

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/cjenkins%40tec-usa.com

This email sent to cjenk...@tec-usa.com



___

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: NSDocument

2010-01-14 Thread David Blanton

I do not have an object whose set to MyDocument.

On Jan 14, 2010, at 2:34 PM, Charles Jenkins wrote:

I'm a noob, but I'm gonna give my interpretation anyway and let the  
experts have a chance to correct my misunderstanding.


I think Matt means that if you use IB to look at your MyDocument.nib  
(or .xib), in the window where you see File's Owner and other stuff,  
you should NOT see another NSObject whose Class is set to  
'MyDocument'. If you have that, then your app will instantiate  
MyDocument, which will load the NIB file, which will instantiate  
another MyDocument--and weirdness ensues.


On 2010-01-14 16:19, David Blanton wrote:
Thank you for commenting but now I am really confused.  When a  
project is created from the document based template it contains  
files MyDocument.h and MyDocument.m which define the interface and  
implementation for a class MyDocument that inherits from NSDocument.


Whne built and and run if any one of many init methods are  
implemented and awakeFromNib is implemented these are called.


So, I do not understand what you have said.

- db

On Jan 14, 2010, at 1:53 PM, Matt Neuburg wrote:

On Thu, 14 Jan 2010 12:57:57 -0700, David Blanton aired...@tularosa.net 


said:

When my document based app starts up the awakeFromNib method in my
NSDocument subclass is called.

When I choose Open a new NSDocument is instanced but this does not
call awakeFromNib.

Am I missing a setting?

I need awakeFromNib to be called for any instance on my NSDocument
sublass.

I am in dire straits on this on,  any help ...appreciated.


In a standard doc-based app, there is no NSDocument instance in  
the nib. So
naturally no NSDocument instance ever awakes from a nib. So  
naturally
awakeFromNib is never called. The fact that your NSDocument  
subclass's
awakeFromNib is *ever* called suggests that you have already done  
something

very odd.

Of course I could just be confused, but it sounds to me like you  
might be
asking the wrong question. Is the question how to perform  
initializations as
a document is opened? The Document-Based Applications Overview  
contains a

discussion of this question.

m.

--
matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings







___

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/cjenkins%40tec-usa.com

This email sent to cjenk...@tec-usa.com



___

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/airedale%40tularosa.net

This email sent to aired...@tularosa.net




___

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: NSDocument

2010-01-14 Thread David Blanton
No.  This is a vanilla document based app with two nibs, MainMenu and  
MyDocument as created by the project template.


The document window is in MyDocument.xib.


On Jan 14, 2010, at 2:41 PM, Jeffrey Oleander wrote:


On Thu, 2010/01/14, David Blanton aired...@tularosa.net wrote:
From: David Blanton aired...@tularosa.net
Subject: Re: NSDocument
To: Matt Neuburg m...@tidbits.com
Cc: cocoa-dev@lists.apple.com
Date: Thursday, 2010 January 14, 15:19
Thank you for commenting but now I am
really confused.  When a project is created from the
document based template it contains files MyDocument.h and
MyDocument.m which define the interface and implementation
for a class MyDocument that inherits from NSDocument.

Whne built and and run if any one of many init methods are
implemented and awakeFromNib is implemented these are
called.

So, I do not understand what you have said.


I'm not sure what you already know and don't know.

The nib (or the xib from which the nib is generated)
contains resources.  Typically, and application has
a Main Menu nib, which may also contain definitions
for a window.  But an app can have many nibs, each
of which defines different resources.

The main nib gets loaded automagically; the others
only get loaded when they're requested.

The window(s) for your NSDocument sub-class may be
in the main nib or in another.







___

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


If Array Controller is empty, how to populate pop-up list?

2010-01-14 Thread Jenny M
Hi all,

I have an Array Controller whose objects are displayed in an NSPopUpButton.
I can add and remove objects, and they refresh automatically in the box as
expected.

However, what can I do if the array controller becomes empty? If I delete
all the objects, or if the window starts up with an empty array controller,
I'd like for the list to then have a null element that says No objects.
Once an object is added, it should go away. But if I choose Insert null
placeholder in the pop-up options, the null placeholder is ALWAYS there,
which is not good.

Is there a way to do this in IB, or is this a thing I should code? And if
so, how can I make sure the method is called whenever there is a change to
the array controller?

Thanks in advanced...
___

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: NSDocument

2010-01-14 Thread Klaus Backert


On 14 Jan 2010, at 22:51, David Blanton wrote:

No.  This is a vanilla document based app with two nibs, MainMenu  
and MyDocument as created by the project template.


The document window is in MyDocument.xib.


What is specified as the class of file's owner in the nib/xib file: (a  
subclass of) NSDocument  or (a subclass of) NSWindowController? You  
can set and see this in the inspector's identity panel.


Klaus

___

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: NSDocument

2010-01-14 Thread David Blanton

Ok. So I diagnose that MyDocument.xib was somehow hosed.

I deleted my main view which was embedded in a scroll view.

Added a custom view set its class to my class MainView.

Embedded MainView in a scroll view.

Compiled and ran.

And guess what, awakeFromNib in MyDocument.m which is a sub class of  
NSDocument is now being called when I choose open.


Go figure.

Now I still need to delete LibraryObjectTemplate (which mysteriously  
appeared, see separate post) but cannot delete noway no how.


Thanks for the comments.

-db

On Jan 14, 2010, at 3:24 PM, Klaus Backert wrote:



On 14 Jan 2010, at 22:51, David Blanton wrote:

No.  This is a vanilla document based app with two nibs, MainMenu  
and MyDocument as created by the project template.


The document window is in MyDocument.xib.


What is specified as the class of file's owner in the nib/xib file:  
(a subclass of) NSDocument  or (a subclass of) NSWindowController?  
You can set and see this in the inspector's identity panel.


Klaus

___

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/airedale%40tularosa.net

This email sent to aired...@tularosa.net




___

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: Changing FirstResponder with Inputmethod

2010-01-14 Thread imai asato
I found EXC_BAD_ACCESS error occurs when garbage collection is on only.
But when when garbage collection is off, first letter is not send to 
NSTextField if InputMethod is on.
For example, when typing  '1' '2' '3' three keys when NSTextField is not first 
responder.
If InputMethod is off, NSTextField shows 123.
If InputMethod is on, NSTextField show 23.

Is this bug of OS?
I'm using 10.6.2.


On 2010/01/13, at 10:39, imai asato wrote:

 Hello,
 
 I have NSTextField and some views(NSTableView etc).
 I want interrupt keydown event when NSTextField is not first responder to 
 input the key to NSTextField.
 I wrote keyDown: method of my NSWindowController class like below.
 
 - (void)keyDown:(NSEvent *)event
 {
   // IBOutlet NSTextField*  myInput;
 
   if ([[self window] firstResponder] != myInput) {
   [[self window] makeFirstResponder:myInput]; // to change 
 keyView
   [[self window] sendEvent:event];
 // to process keydown event
   }
 }
 
 This works well when keyboard layout is US.
 But when Japanese inputmethod is on, EXC_BAD_ACCESS on CopyRgn of 
 GetPortVisionRegion of CTextensionDisplay::Focus… is occur.
 
 Does anyone have any idea?
 
 
 --
 imai asato
 
 
 
 
 ___
 
 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/imai_asato%40nifty.com
 
 This email sent to imai_as...@nifty.com

___

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: NSDocument

2010-01-14 Thread Klaus Backert


On 14 Jan 2010, at 23:44, David Blanton wrote:


Ok. So I diagnose that MyDocument.xib was somehow hosed.

I deleted my main view which was embedded in a scroll view.

Added a custom view set its class to my class MainView.

Embedded MainView in a scroll view.

Compiled and ran.

And guess what, awakeFromNib in MyDocument.m which is a sub class of  
NSDocument is now being called when I choose open.


Go figure.

Now I still need to delete LibraryObjectTemplate (which mysteriously  
appeared, see separate post) but cannot delete noway no how.


Thanks for the comments.


Congratulations!

Regarding LibraryObjectTemplate ...

According to my experience one reason for objects in a nib/xib file  
not being deletable is, that they contain other objects (you can see  
this in the outline view mode in the Interface Builder document  
window), or that they have certain connections to other objects. These  
other things have to be deleted first.


Klaus

___

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


Bindings Problem

2010-01-14 Thread Carter R. Harrison
I'm sure what I'm trying to do is not that difficult but I've been pulling my 
hair out for a while now on this problem.

I have an application whose model could be updated without the user directly 
doing anything.  So bindings seems like the perfect fit b/c the interface will 
reflect these sorts of changes when they occur.  But I can't seem to get 
updates in my model to appear in the interface.  My model is an NSMutableSet 
that contains NSMutableDictionaries.  I then have a NSTableView with several 
columns.  I want each column in the table to display a value from each 
NSMutableDictionary.

@interface MyController : NSObject 
{
NSMutableSet *myset;
}

//I initialize the NSMutableSet in this method.
- (void)awakeFromNib;

//Setter and Getter to ensure KVC compliance.
- (void)setMyset:(NSMutableSet *)set;
- (NSMutableSet *)myset;

//This method is here for testing.  A button in the UI is connected to the 
method.
//When executed this method creates a new NSMutableDictionary.  Adds some 
key/value
//pairs to it then adds the NSMutableDictionary to the NSMutableSet (myset).
- (IBAction)addValueToSet:(id)sender;


In Interface Builder I have dragged out an NSObject and set its type to be 
MyController.  I then dragged out an NSObjectController and set its Content 
connection to the MyController object.  I then dragged out an NSArrayController 
and bound its Content Array binding to the Object Controller with a Controller 
Key of selection and a Model Key Path of myset.  I also set the 
NSArrayController's Class Name to NSMutableDictionary since that is what is 
held by my NSMutableSet.  I setup a NSTableView in my application's window and 
then bound its first table column's Value binding to the NSArrayController 
using arrangedObjects as the Controller Key and Caption as the Model Key 
Path.  Caption is the key to a key/value pair in the NSMutableDictionary that 
is held by the NSMutableSet (myset).

In the addValueToSet: method I have the following code:

- (IBAction)addValueToSet:(id)sender
{
NSString *newString = @New Value;
NSMutableDictionary *dict = [[[NSMutableDictionary alloc] 
initWithCapacity:1] autorelease];
[dict setValue:newString forKey:@Caption];
[myset addObject:dict];
}

When I click the button in my interface nothing happens.  I know the 
addValueToSet: method is being called however I would expect the interface to 
update based upon my updating the model.  Can anybody tell me what I'm doing 
wrong?
___

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: NSDocument

2010-01-14 Thread Matt Neuburg
On or about 1/14/10 1:19 PM, thus spake David Blanton
aired...@tularosa.net:

 Thank you for commenting but now I am really confused.  When a project

Because I was totally wrong! Ignore me. The MyDocument is the file's owner
for the document nib, so it does have an instance in the nib, and
awakeFromNib is called when the nib opens for a document. m.

-- 
matt neuburg, phd = m...@tidbits.com, http://www.tidbits.com/matt/
pantes anthropoi tou eidenai oregontai phusei
Among the 2007 MacTech Top 25, http://tinyurl.com/2rh4pf
AppleScript: the Definitive Guide, 2nd edition
http://www.tidbits.com/matt/default.html#applescriptthings
Take Control of Exploring  Customizing Snow Leopard
http://tinyurl.com/kufyy8
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
TidBITS, Mac news and reviews since 1990, http://www.tidbits.com



___

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: Bindings Problem

2010-01-14 Thread mmalc Crawford

On Jan 14, 2010, at 3:11 pm, Carter R. Harrison wrote:

 In the addValueToSet: method I have the following code:
 - (IBAction)addValueToSet:(id)sender
 
See 
http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/CocoaBindings/Concepts/Troubleshooting.html#//apple_ref/doc/uid/TP40002148

mmalc

___

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: If Array Controller is empty, how to populate pop-up list?

2010-01-14 Thread Jenny M
Uhh, okay so there's another problem I discovered. Below the popupmenu, I
have two text fields that are supposed to show two of the attributes of the
selected object (in the array controller). But changing the selection in the
popupmenu does NOT change the selected item in the array controller. How do
I wire the two together such that selecting a different value in the
nspopupmenu also changes the selected object in the array controller?

Right now the NSPopUpMenu has the bindings set like so:
- Content: ArrayController.arrangedObjects
- Content Values: ArrayController.arrangedObjects.name

Any ideas what else I need to set??
___

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: NSDocument

2010-01-14 Thread Graham Cox

On 15/01/2010, at 10:16 AM, Matt Neuburg wrote:

 Because I was totally wrong! Ignore me. The MyDocument is the file's owner
 for the document nib, so it does have an instance in the nib, and
 awakeFromNib is called when the nib opens for a document. m.


Still slightly wrong.

File's Owner is NOT an instance in the nib - it's an instance of something 
already in your app. The icon in the nib is just a proxy or stand-in for this 
object. However, it does have its -awakeFromNib method called *as if* it were 
an instance in the nib.

--Graham


___

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: NSDocument

2010-01-14 Thread Rob Keniger

On 15/01/2010, at 5:57 AM, David Blanton wrote:

 I need awakeFromNib to be called for any instance on my NSDocument sublass.


This isn't an answer to your question, but I believe generally you should be 
using the -windowControllerDidLoadNib: method of NSDocument instead of 
-awakeFromNib if you are not using a separate NSWindowController.

--
Rob Keniger



___

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: If Array Controller is empty, how to populate pop-up list?

2010-01-14 Thread Jenny M
Cancel Message #2 - I figured out how to change the selected object. I added
one more binding - I bound the NSPopUpButton Selected Index to
ArrayController.selectionIndex.

However, message #1 still stands - how do I implement a placeholder object
only when the array is empty??
___

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: Tutorial on writing a Cocoa/Mac app.

2010-01-14 Thread Cameron @ Gmail

Thats excellent, thank you.


On 14 Jan 2010, at 1:22 PM, lbland wrote:


hi-

We placed a manual with 4 tutorials in it at:

http://www.peervisual.com/manuals/VvidgetCode

Including one showing how to build a Cocoa/Mac app from scratch. It  
might be useful to those that want a description of Cocoa  
programming from ground zero to full deployment.


thanks!-

-lance

___

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/c.mcgorian 
%40gmail.com


This email sent to c.mcgor...@gmail.com


___

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


Help with Client/Server GameKit

2010-01-14 Thread John Gentilin

This may net be the right list but hopefully someone has seen this
issue and can help me out...

I have an IPhone app using GameKit, in client server mode. After I 
terminate
the Client App a few times with the home button, it fails to connect to 
the server.

The problem is, when I send the message, connectToPeer, I receive a timeout
error on from the  connectionWithPeerFailed, the timeout is set to 30 
seconds.
Once its in this state one odd thing I notice is that it appears to go 
into Device
Available state at the wrong time, i.e. sometimes even if the server is 
not running
I get a server available state change. If I terminate the server app, 
and restart the
problem does not appear to exist, the client will always connect.  If 
the client is
in the bad state, if I restart both apps, they will usually connect. 
Also in this state if I
debug the Client / Server or both.. I can see state change messages in 
the console for
the client, but the server is silent... Its almost like the client can 
no longer resolve the

name of the server device..  Any ideas ?

Thank you
John Gentilin

___

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: If Array Controller is empty, how to populate pop-up list?

2010-01-14 Thread Rob Keniger

On 15/01/2010, at 1:18 PM, Jenny M wrote:

 However, message #1 still stands - how do I implement a placeholder object
 only when the array is empty??


In your content binding for the popup button in Interface Builder, check the 
Inserts Null Placeholder checkbox and enter a value in the Null Placeholder 
field.

--
Rob Keniger



___

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: Time to drop PowerPC support?

2010-01-14 Thread Nick Zitzmann

On Jan 14, 2010, at 11:17 AM, Dominic Blais wrote:

 So the big question I have for the group is whether it is important for new
 Cocoa software that has a 10.5+ requirement to support PowerPC.  We really
 want to do the best by our users, both in the sense of supporting their
 hardware and developing new features more quickly.  Any advice or similar
 experiences would be greatly appreciated.

I'd say keep it for the time being, unless:
(1) You are targeting Snow Leopard and later only,
(2) You are very concerned about the size of your executables,
(3) Your software has a lot of dependencies on things that are 
difficult/impossible to compile as universal (e.g. glib), or
(4) Your software depends on X86(-64) assembly language or little-endian byte 
order, or other CPU-specific features, and back-porting would be impossible or 
take too long.

Unless these are concerns, I wouldn't drop PPC support, since there are still 
quite a few people out there using PPC Macs that are downloading/buying 
software for Leopard, even though they're now in the minority. Of course, this 
will change in the next few years, as new versions of OS X come and go, and PPC 
becomes a distant memory. After a while, there will still be PPC users, but 
they probably won't be buying new software, and they probably won't be worth 
your time.

Also, keep in mind that some unfortunate users must run their UB apps under 
Rosetta on Intel Macs, because they rely on some third-party add-ons that were 
never ported to X86(-64). This is quite rare, though.

That said, if you do decide to drop support, you probably won't receive (m)any 
complaints. At least I've never received a single complaint from a PPC user 
about the X86-64-only preference pane I released a few months ago, which 
required a very specific feature of X86-64-based Macs and couldn't be 
back-ported.

Nick Zitzmann
http://www.chronosnet.com/



___

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


Confused about setting selection in NSBrowser

2010-01-14 Thread Chris Idou


I'm trying to set the selected item in an NSBrowser.

I don't want to use setPath: because the items I'm storing in the browser are 
not unique, so therefore paths are not unique.

I'm trying to use setIndexPath: but when I try the program throws an exception:

HIToolbox: ignoring exception 'setSelectionIndexPath: is not supported for 
browsers with matrix delegates.' that raised inside Carbon event dispatch
(
0   CoreFoundation  0x7fff80322444 
__exceptionPreprocess + 180
1   libobjc.A.dylib 0x7fff8055d0f3 objc_exception_throw 
+ 45
2   AppKit  0x7fff8378e252 -[NSBrowser 
setSelectionIndexPath:] + 128

I don't understand what this exception means.



  
__
See what's on at the movies in your area. Find out now: 
http://au.movies.yahoo.com/session-times/
___

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


newbie question -views and MCV model

2010-01-14 Thread Martin Beroiz
Hello all,

i have a very noob question about the MCV model to display a data file in a 
view.

I'm trying to implement Model-Controller-View. So, so far I created a class 
called FilterBank that will contain all the data to be plotted plus a method to 
init from a file. Then I included one instance of the class FilterBank in the 
myDocument class in the readFromURL: method . When I open a file, myDocument 
will read and load all the data to the class calling the initFromFile: method 
of FilterBank, and that works ok. 

Then I can subclass NSView to hold and plot the image using NSImageRep, etc. 

My problem is with the controller. I subclassed NSViewController (with the name 
FilterBankViewController) and tried to bind the class with the file's owner. 
But I noticed that in IB I cannot do that, actually the bind tab says it's Not 
Applicable. 

I don't understand why though, b/c I learned in a tutorial (that loads data 
from a file and puts that into a table), that you need an NSArrayController to 
mediate between the table and the file owner.  What kind of controller should I 
use here? How does the view get notified that it should redraw itself and how 
can I pass the information so that the view knows what to draw?


Thanks.___

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: Time to drop PowerPC support?

2010-01-14 Thread Kyle Sluder
We have announced that all new major releases of our software will
require Snow Leopard (and therefore Intel processors). You can see our
current usage statistics at http://update.omnigroup.com—choose
Hardware from the popup list, and then choose CPU Type.

Another factor to consider is that you will need to maintain PowerPC
hardware to test on.

--Kyle Sluder

On Thu, Jan 14, 2010 at 10:17 AM, Dominic Blais domi...@bombaxtic.com wrote:
 Hello.  OS X 10.6 is the first version of OS X that doesn't support the
 PowerPC architecture (http://www.apple.com/macosx/specs.html).  We're
 working on a Cocoa server-side web framework and server (
 http://www.bombaxtic.com/bombax) and so far we've been making universal
 builds.  We support OS X 10.5 or 10.6 and our plan is to keep 10.5 as our
 minimum OS version.

 But, the big question we're debating is whether to include PPC support in
 the production release.  Since our product is still in beta, we have the
 pleasant opportunity to decide this without worrying about cutting off
 support to existing customers.  Supporting Intel-only would make testing,
 development, and tech support easier.  On the other hand, we don't want to
 alienate developers and administrators that are still loving their PowerMac
 G5 Quads :).

 So the big question I have for the group is whether it is important for new
 Cocoa software that has a 10.5+ requirement to support PowerPC.  We really
 want to do the best by our users, both in the sense of supporting their
 hardware and developing new features more quickly.  Any advice or similar
 experiences would be greatly appreciated.

 Thanks,
 Dominic Blais
 Chief Operating Officer - domi...@bombaxtic.com
 Bombaxtic LLC - http://www.bombaxtic.com
 ___

 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/kyle.sluder%40gmail.com

 This email sent to kyle.slu...@gmail.com

___

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: Time to drop PowerPC support?

2010-01-14 Thread Dominic Blais
Thank you for these responses!  I think we will roll out with PowerPC but
EOL support for it within 6 months of the next major Apple OS release. As
Bombax is for server operation, I think the hardware adoption is a little
more conservative than with desktop users, but that 9% PPC population is a
really encouraging sign for switching later on down the road.  Thanks again!

Sincerely,
Dominic Blais
Chief Operating Officer - domi...@bombaxtic.com
Bombaxtic LLC - http://www.bombaxtic.com


On Thu, Jan 14, 2010 at 8:59 PM, Kyle Sluder kyle.slu...@gmail.com wrote:

 We have announced that all new major releases of our software will
 require Snow Leopard (and therefore Intel processors). You can see our
 current usage statistics at http://update.omnigroup.com—choose
 Hardware from the popup list, and then choose CPU Type.

 Another factor to consider is that you will need to maintain PowerPC
 hardware to test on.

 --Kyle Sluder

 On Thu, Jan 14, 2010 at 10:17 AM, Dominic Blais domi...@bombaxtic.com
 wrote:
  Hello.  OS X 10.6 is the first version of OS X that doesn't support the
  PowerPC architecture (http://www.apple.com/macosx/specs.html).  We're
  working on a Cocoa server-side web framework and server (
  http://www.bombaxtic.com/bombax) and so far we've been making universal
  builds.  We support OS X 10.5 or 10.6 and our plan is to keep 10.5 as our
  minimum OS version.
 
  But, the big question we're debating is whether to include PPC support in
  the production release.  Since our product is still in beta, we have the
  pleasant opportunity to decide this without worrying about cutting off
  support to existing customers.  Supporting Intel-only would make testing,
  development, and tech support easier.  On the other hand, we don't want
 to
  alienate developers and administrators that are still loving their
 PowerMac
  G5 Quads :).
 
  So the big question I have for the group is whether it is important for
 new
  Cocoa software that has a 10.5+ requirement to support PowerPC.  We
 really
  want to do the best by our users, both in the sense of supporting their
  hardware and developing new features more quickly.  Any advice or similar
  experiences would be greatly appreciated.
 
  Thanks,
  Dominic Blais
  Chief Operating Officer - domi...@bombaxtic.com
  Bombaxtic LLC - http://www.bombaxtic.com
  ___
 
  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/kyle.sluder%40gmail.com
 
  This email sent to kyle.slu...@gmail.com
 

___

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: Time to drop PowerPC support?

2010-01-14 Thread Chris Idou


Another factor to consider is that you will need to maintain PowerPC
hardware to test on.

--Kyle Sluder


I had a 50,000 line Cocoa program, and I thought about restricting it to Intel 
for that reason, but then I thought heck, I'll build it universal and throw it 
out there. Not a single bug reported due to PPC, and a few happy customers for 
my trouble.

I don't see the point in dropping PPC support, unless you have special issues.


  
__
See what's on at the movies in your area. Find out now: 
http://au.movies.yahoo.com/session-times/
___

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: If Array Controller is empty, how to populate pop-up list?

2010-01-14 Thread Jenny M
Like I mentioned previously - when I do that, it stays there even after an
object has been added, which is not what I'm aiming for. I only want it to
appear when empty.


In your content binding for the popup button in Interface Builder, check the
 Inserts Null Placeholder checkbox and enter a value in the Null
 Placeholder field.

-- 

Rob Keniger

___

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: If Array Controller is empty, how to populate pop-up list?

2010-01-14 Thread Rob Keniger

On 15/01/2010, at 4:24 PM, Jenny M wrote:

 Like I mentioned previously - when I do that, it stays there even after an
 object has been added, which is not what I'm aiming for. I only want it to
 appear when empty.


Ah, sorry, I didn't see that in your original post.

--
Rob Keniger



___

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