Canceling a NSURLConnection

2012-04-25 Thread Andreas Grosam
Hi All!

I'm having an issue how to properly and reliably canceling a NSURLConnection 
scheduled on a secondary thread and would really appreciate help.


The actual issue is that sometimes (not always) sending a message from the main 
thread - which is basically a higher level cancel message - to the thread where 
the connection delegates are scheduled will block infinitively. I'm sending the 
message from the main thread via:


[self performSelector:@selector(stopConnectionRunLoop_private) 
 onThread:self.connectionThread
   withObject:nil
waitUntilDone:YES
modes:[NSArray arrayWithObject: NSDefaultRunLoopMode]];


Note the 'YES' for parameter waitUntilDone, which will be explained later.

The main thread blocks infinitively without invoking the selector's message 
'stopConnectionRunLoop_private'.
The connection is scheduled in NSDefaultRunLoopMode on the secondary thread, as 
usual.

Stack (partial):


Thread 1 Queue : (null) (main thread)

#0  0x35de454c in __semwait_signal ()
#1  0x35d90f78 in _pthread_cond_wait ()
#2  0x35d90918 in pthread_cond_wait ()
#3  0x3517ed64 in -[NSCondition wait] ()
#4  0x3516910c in -[NSObject(NSThreadPerformAdditions) 
performSelector:onThread:withObject:waitUntilDone:modes:] ()


Thread 6, Queue : (null)

#0  0x35d848d8 in select$DARWIN_EXTSN ()
#1  0x3755aa3a in __CFSocketManager ()
#2  0x35de5b4c in _pthread_start ()
#3  0x35dd77ac in thread_start ()


Thread 7, Queue : (null)

#0  0x35d5b400 in semaphore_wait_trap ()
#1  0x35d91460 in semaphore_wait ()
#2  0x35e5f3cc in _dispatch_semaphore_wait_slow ()





A more detailed explanation:


>From the main thread, I invoke this method:

- (void) cancelButtonTapped {
[self cancel];
}

where self is a controller and the connection delegate. -cancel is implemented 
as follows:

- (void) cancel {
[self cancelConnectionWaitUntilDone:YES];
}

"WaitUntilDone:YES" is a requirement which should guarantee that all delegate 
methods have finished and the secondary thread has terminated (note, connection 
delegates execute on the secondary thread). Otherwise, I would possibly risk a 
race condition due to accessing ivars from the secondary thread and the main 
thread.



-cancelConnectionWaitUntilDone: is implemented as follows, and yes this seems 
quite elaborated, but I haven't found an easy way to accomplish this, till now:

- (void) cancelConnectionWaitUntilDone:(BOOL)wait 
{
if (self.connection) {
NSLog(@"Attempt to cancel the connection ...");
[self.connection cancel];
self.connection = nil;
NSLog(@"... cancel returned.");
}
else {
NSLog(@"No connection to cancel");
}
[self stopConnectionRunLoopWaitUntilDone:wait];  // here it may block 
infinitively occasionally
}

Note: the reason for sending a message to the Run Loop is to cause the Run Loop 
to exit, which in turn can be utilized to check the flag 'runLoopDone_' which 
causes the outer loop to exit, and eventually causes the secondary thread to 
exit. Please see the handling of the Run Loop (code fragment) below:

runLoopDone_ = NO;
[[NSRunLoop currentRunLoop] addPort:[NSMachPort port] 
forMode:NSDefaultRunLoopMode];
do {
[[NSRunLoop currentRunLoop] runMode:NSDefaultRunLoopMode
 beforeDate:[NSDate 
dateWithTimeIntervalSinceNow:10]];
if (runLoopDone_) {
NSLog(@"Exit RunLoop.");
}
} while (!runLoopDone_);






- (void) stopConnectionRunLoopWaitUntilDone:(BOOL)wait
{
NSLog(@"stopConnectionRunLoopWaitUntilDone with thread %@", 
self.connectionThread);
if (self.connectionThread == nil) {
return;
}
[self performSelector:@selector(stopConnectionRunLoop_private) 
 onThread:self.connectionThread
   withObject:nil
waitUntilDone:wait
modes:[NSArray arrayWithObject: NSDefaultRunLoopMode]];
}

- (void) stopConnectionRunLoop_private {
if (self.connection) {
NSLog(@"cannot stop Run Loop: connection is still active");
return;
}
runLoopDone_ = YES;
}




Log:
---

2012-04-25 08:59:07.488 Test[2165:307] Attempt to cancel the connection ...
2012-04-25 08:59:07.532 Test[2165:307] ... cancel returned.
2012-04-25 08:59:07.697 Test[2165:307] stopConnectionRunLoopWaitUntilDone with 
thread {name = (null), num = 14}




Thanks for help!

Regards
Andreas



___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: Canceling a NSURLConnection

2012-04-25 Thread Andreas Grosam

On Apr 25, 2012, at 9:45 AM, Andreas Grosam wrote:

> Hi All!
> 
> I'm having an issue how to properly and reliably canceling a NSURLConnection 
> scheduled on a secondary thread and would really appreciate help.
> 
> 
> The actual issue is that sometimes (not always) sending a message from the 
> main thread - which is basically a higher level cancel message - to the 
> thread where the connection delegates are scheduled will block infinitively. 
> I'm sending the message from the main thread via:

I believe, I've found the issue:   

A connection delegate method called a dispatch_async() on the main thread   
*sigh*  - this was unnoticed and this code remained *accidentally*, after 
updating. I believe, this was the dead lock. 

Anyway - any comments to this technique are welcome.

Andreas



___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: Losing attachments when saving rtfd

2012-04-25 Thread jonat...@mugginsoft.com

On 24 Apr 2012, at 17:31, Matthew Weinstein wrote:

> Dear programmers,
> 
> Trying to save an RTFD from an NSAttributedString with attachements. The text 
> saves; the images don't...
> 
> I've been scouring the web but can't seem to figure out what's wrong.
> 
> I have a NSAttributedString with attachments. I check that the string really 
> has the attachments by using setAttributedString to the textstorage of a 
> NSTextView, and voila, there it is.
> 
> But I can't seem to save the attachment. This is what I'm trying:
> 
>   //this is a category I found on the interwebs
>   myimagets = [[NSTextAttachment alloc] initWithAnImage: myimage];
>   //get doc string
>   //replace with the attributed string
> 
>   myattstr =  [NSMutableAttributedString attributedStringWithAttachment: 
> myimagets];
>   
>   //stick on a little text at the end to see how it handles both...
>   addon = [[NSMutableAttributedString alloc] initWithString: @"and here's 
> the extra bit"];
>   [myattstr appendAttributedString: addon];
> 
>   //this is my test to see if the attachment is really there: it works!
>   [[myTextView textStorage] setAttributedString: myattstr];
> 
> 
>   //here's what fails:
>   myfw = [myattstr RTFDFileWrapperFromRange: NSMakeRange(0, [myattstr 
> length])
>  documentAttributes:nil];
>   [myfw writeToFile: [@"~/Desktop/outfile.rtfd" 
> stringByExpandingTildeInPath]
>  atomically:YES updateFilenames:YES];
> What's created is an rtfd with only the rtf file in it and no images 
> 
> Thoughts? Help?
I have used the following, might be worth a try.

NSFileWrapper *wrapper = [attributedStringResource 

RTFDFileWrapperFromRange:NSMakeRange(0, [self.attributedStringResource length]) 
documentAttributes:nil];

success = [wrapper writeToURL:[NSURL fileURLWithPath:[path 
stringByExpandingTildeInPath]] 
options:NSFileWrapperWritingAtomic & 
NSFileWrapperWritingWithNameUpdating
originalContentsURL:nil 
error:&error];

Regards

Jonathan Mitchell
Mugginsoft LLP


KosmicTask - the Integrated Scripting Environment for OS X.
http://www.mugginsoft.com/KosmicTask











___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: Displaying history - potential ways to do it

2012-04-25 Thread Fritz Anderson
On 21 Apr 2012, at 5:39 AM, The Rhythmic wrote:

> Hi, Am a newbie to iOS development. I want to display the DB history i.e.
> the changes the users make to a specific critical table in the DB, from
> bottom-up, i.e. the first update appears bottom-most ...something like
> 
> ...
> ...
> Apr 10th - Changed 'status' field from 'boolean' to 'char'
> Apr 5th - Granted Joe access to the table
> Apr 2nd - Added a column to the table
> 
> And I would like to display it in a fancy way...something like the timeline
> in Path app if I should say a recent example.
> 
> One possible way I see to do this is to use UITableViewCell. Is there any
> other way to do this? Which is recommended/apt?

I don't think I understand what you're trying to do. The changes you refer to 
are changes to the schema or data model — changes you'd make in the development 
environment — but you say you want to display the changes in your app?

If you just want to log them and don't care how they are displayed, that's a 
job for the messages you attach to the source-control commits for the revisions 
in which the changes are made.

If you want to put the log into the app, you don't have to worry about keeping 
a dynamic list. You can embed a property list (or other file) in the app, 
containing a log you maintain by hand.

I'm not familiar with Path, or how fancy it is. For the display of stacked 
elements on iOS, one's thinking should begin with UITableView. Putting together 
custom UITableViewCells (not even UITVC subclasses — you can just build them in 
a XIB or storyboard and refer to the parts by UIView tags) will give you as 
fancy a display as you want.

— F


___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Re: Adding cells from the bottom (like a stack) in UITableView

2012-04-25 Thread Fritz Anderson
On 21 Apr 2012, at 4:53 PM, The Rhythmic wrote:

> Hi, Am a newbie to iOS programming. This is what am trying to do:
> 
> 1. The user enters some text in the screen and it keeps getting added to a
> UITableView.
> 
> 2. As usual, it's getting added *from* the top.
> 
> 3. But I want to add it from the bottom i.e. each new message that's added
> is added *above *the rest/existing ones, and not below.
> 
> Can someone offer some pointer on this please!

Table views don't care how you order the data in them. They don't keep data, 
they just ask you how to format the next cell that comes into view. 

So have your data source keep track of the order in which new data comes into 
the list, send -insertRowsAtIndexPaths:withRowAnimation: to the table view, and 
let it pull the contents from your data source. When it asks, tell it the 
information from your latest datum goes into index path {0, 0}.

— F


___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Re: How to get the embossed look of the entire cell in UITableView?

2012-04-25 Thread Fritz Anderson
On 21 Apr 2012, at 5:36 PM, The Rhythmic wrote:

> Hi, Am a newbie to iOS programming. In the app am writing, am adding user
> inputs dynamically/programmatically to UITableView. For each user input, I
> put it in a UITableViewCell and add it to the UITableView. I want the table
> cells to look like in the iPhone 'Messages' screen (like a bubble or some
> embossed look of the 'entire' cell). How is this possible? Any help please?

Prepare your background image so it shows all your effects for the corners and 
sides, around the smallest practical content: The smallest correct 
representation of your bubble. Add it to your project as a resource. Load the 
resource from the bundle as a UIImage. Send it -resizableImageWithCapInsets:. 
Now you have an image you can use as a background that you can stretch to fit 
the content.

— F


___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

WWDC

2012-04-25 Thread Rick Mann
Is WWDC really sold out already? I just got the notification email...

-- 
Rick

___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


RE: WWDC

2012-04-25 Thread Jim Adams
I got the text message alert 30 minutes after it was sold out.

-Original Message-
From: cocoa-dev-bounces+jim.adams=sas@lists.apple.com 
[mailto:cocoa-dev-bounces+jim.adams=sas@lists.apple.com] On Behalf Of Rick 
Mann
Sent: Wednesday, April 25, 2012 1:20 PM
To: cocoa-dev@lists.apple.com List
Subject: WWDC

Is WWDC really sold out already? I just got the notification email...

--
Rick

___

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:
https://lists.apple.com/mailman/options/cocoa-dev/jim.adams%40sas.com

This email sent to jim.ad...@sas.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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: WWDC

2012-04-25 Thread Nathan Sims
The WWDC 2012 announcement email was dated April 25, 2012 7:04:42 AM PDT. 
*No one* I know of was able to obtain a ticket.
Maybe they need a raffle or some such?


On Apr 25, 2012, at 10:19 AM, Rick Mann wrote:

> Is WWDC really sold out already? I just got the notification email...
> 
> -- 
> Rick
> 

___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: WWDC

2012-04-25 Thread Rick Mann
I got mine at 0640:05 PDT. A lottery would be nice, maybe it needs to be bigger 
and/or more expensive (although it's ridiculously expensive already).

I wonder how it compares to Google I/O.

-- 
Rick


On Apr 25, 2012, at 10:32 , Nathan Sims wrote:

> The WWDC 2012 announcement email was dated April 25, 2012 7:04:42 AM PDT. 
> *No one* I know of was able to obtain a ticket.
> Maybe they need a raffle or some such?
> 
> 
> On Apr 25, 2012, at 10:19 AM, Rick Mann wrote:
> 
>> Is WWDC really sold out already? I just got the notification email...
>> 
>> -- 
>> Rick
>> 
> 


___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: Losing attachments when saving rtfd

2012-04-25 Thread Douglas Davidson

On Apr 24, 2012, at 9:31 AM, Matthew Weinstein wrote:

> Trying to save an RTFD from an NSAttributedString with attachements. The text 
> saves; the images don't...
> 
> I've been scouring the web but can't seem to figure out what's wrong.
> 
> I have a NSAttributedString with attachments. I check that the string really 
> has the attachments by using setAttributedString to the textstorage of a 
> NSTextView, and voila, there it is.
> 
> But I can't seem to save the attachment. This is what I'm trying:
> 
>   //this is a category I found on the interwebs
>   myimagets = [[NSTextAttachment alloc] initWithAnImage: myimage];
>   //get doc string
>   //replace with the attributed string

You might want to take a look at how the attachments are being created.  Each 
one needs to have a suitable fileWrapper containing the image file you want 
written out, or they cannot be written to disk.  Note that the display of the 
attachments is controlled by the NSTextAttachmentCell, which can work fine even 
if there is no file representation for the image.  You don't mention what image 
file format you are using.

Douglas Davidson

___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: WWDC

2012-04-25 Thread Scott Ellsworth
Or, perhaps, a staged rollout across timezones.  Heck, telling people when
tickets would go on sale would have been a nice step.

Scott

On Wed, Apr 25, 2012 at 10:32 AM, Nathan Sims <
newsli...@autonomy.caltech.edu> wrote:

> The WWDC 2012 announcement email was dated April 25, 2012 7:04:42 AM PDT.
> *No one* I know of was able to obtain a ticket.
> Maybe they need a raffle or some such?
>
>
> On Apr 25, 2012, at 10:19 AM, Rick Mann wrote:
>
> > Is WWDC really sold out already? I just got the notification email...
> >
> > --
> > Rick
> >
>
> ___
>
> 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:
>
> https://lists.apple.com/mailman/options/cocoa-dev/scott_ellsworth%40alumni.hmc.edu
>
> This email sent to scott_ellswo...@alumni.hmc.edu
>
>
___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: WWDC

2012-04-25 Thread Rob Ross
I filed a bug report under "other" asking them to increase the numbers of
attendees at future WWDC. They should be able to do it, if they want to.
Java One regularly had 15,000 in its heyday, at the exact same Moscone
Center venue.

On Wednesday, April 25, 2012, Nathan Sims 
wrote:
> The WWDC 2012 announcement email was dated April 25, 2012 7:04:42 AM PDT.
> *No one* I know of was able to obtain a ticket.
> Maybe they need a raffle or some such?
>
>
> On Apr 25, 2012, at 10:19 AM, Rick Mann wrote:
>
>> Is WWDC really sold out already? I just got the notification email...
>>
>> --
>> Rick
>>
>
> ___
>
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/rob.ross%40gmail.com
>
> This email sent to rob.r...@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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: WWDC

2012-04-25 Thread vincent habchi


•••—•—

On 25 avr. 2012, at 19:19, Rick Mann  wrote:

> Is WWDC really sold out already? 

That was faster than the eye can wink. I wonder how many tickets are actually 
offered.
Vincent


___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Re: WWDC

2012-04-25 Thread Ravi Singh
> I wonder how it compares to Google I/O.

Not even close, IO was absolutely ridiculous , if you applied within 15 seconds 
of the opening you were told tickets were sold out even though people 10 mins 
later got them. The google io web app was a disaster in design. I think if you 
were able to find out about the WWDC tickets in time you could get them and the 
site was a million times more stable. 

I don't think they need to increase the cost, they need to let developers know 
a week ahead so you can plan for it and limit it to developers only. 

RS
___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: WWDC

2012-04-25 Thread Eric E. Dolecki
I/O sold out in like 28 minutes didn't it? And I thought I heard you had to
take some kind of simple test to qualify? I don't know... I'll probably
never attend one.
___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: WWDC

2012-04-25 Thread M Pulis

On Apr 25, 2012, at 10:45 AM, vincent habchi wrote:




•••—•—

On 25 avr. 2012, at 19:19, Rick Mann  wrote:


Is WWDC really sold out already?


That was faster than the eye can wink. I wonder how many tickets are  
actually offered.


All of them!

:-)

gary
"eat, code, sleep"


Vincent


___

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:
https://lists.apple.com/mailman/options/cocoa-dev/toothpic%40fastq.com

This email sent to tooth...@fastq.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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Re: WWDC

2012-04-25 Thread Cody Garvin
I was able to get a ticket. On the west coast. I happened to just get done with 
my workout and saw the email. My email was dated at 6:30am pst. 



On Apr 25, 2012, at 10:32 AM, Nathan Sims  
wrote:

> The WWDC 2012 announcement email was dated April 25, 2012 7:04:42 AM PDT. 
> *No one* I know of was able to obtain a ticket.
> Maybe they need a raffle or some such?
> 
> 
> On Apr 25, 2012, at 10:19 AM, Rick Mann wrote:
> 
>> Is WWDC really sold out already? I just got the notification email...
>> 
>> -- 
>> Rick
>> 
> 
> ___
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/cody%40servalsoft.com
> 
> This email sent to c...@servalsoft.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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: WWDC

2012-04-25 Thread Mark D. Gerl
Incorrect.

Moscone West Conference Center is not same venue as North/South Convention 
Center.  Apple sells to Fire-Marshall capacity of the venue.

Mark

Sent from my iOS device

On Apr 25, 2012, at 1:45 PM, Rob Ross  wrote:

> Java One regularly had 15,000 in its heyday, at the exact same Moscone
> Center venue.

___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: WWDC

2012-04-25 Thread Ravi Singh
> I/O sold out in like 28 minutes didn't it? And I thought I heard you had to
> take some kind of simple test to qualify? I don't know... I'll probably
> never attend one.

Total IO BS, No test and there are thousands of stories of people who tried to 
get a ticket within 10 seconds and got nothing. They said there would be a 
coding test and there was nothing. Last year IO did their site in ColdFusion 
. this year, they had a script that pinged the server every 5 mins instead 
of queuing people up,
I know it sucks not getting a WWDC ticket but it was really done way better 
than IO's registration process. 

I wish they applied a developer test , and just like WWDC offer some sort of 
pass for people who want to see the keynote and one for people who need to go 
because they love mobile development. I saw all sorts of people who went to the 
first day of both and spent the rest of their time just holidaying in SF and 
after parties. 

___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: WWDC

2012-04-25 Thread Greg Parker
On Apr 25, 2012, at 10:45 AM, Rob Ross  wrote:
> I filed a bug report under "other" asking them to increase the numbers of
> attendees at future WWDC. They should be able to do it, if they want to.
> Java One regularly had 15,000 in its heyday, at the exact same Moscone
> Center venue.

Different building. JavaOne was in Moscone North and South, which is bigger 
than WWDC's Moscone West. It also featured a big traditional tech show floor 
(think MacWorld, not WWDC).

(When I was on Apple's Java team I worked in Apple's booth at JavaOne.)


-- 
Greg Parker gpar...@apple.com Runtime Wrangler



___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


RE: WWDC

2012-04-25 Thread Jim Adams
They did try to limit to 5 people from each team.

-Original Message-
From: cocoa-dev-bounces+jim.adams=sas@lists.apple.com 
[mailto:cocoa-dev-bounces+jim.adams=sas@lists.apple.com] On Behalf Of Ravi 
Singh
Sent: Wednesday, April 25, 2012 1:47 PM
To: Rick Mann
Cc: cocoa-dev@lists.apple.com List
Subject: Re: WWDC

> I wonder how it compares to Google I/O.

Not even close, IO was absolutely ridiculous , if you applied within 15 seconds 
of the opening you were told tickets were sold out even though people 10 mins 
later got them. The google io web app was a disaster in design. I think if you 
were able to find out about the WWDC tickets in time you could get them and the 
site was a million times more stable.

I don't think they need to increase the cost, they need to let developers know 
a week ahead so you can plan for it and limit it to developers only.

RS
___

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:
https://lists.apple.com/mailman/options/cocoa-dev/jim.adams%40sas.com

This email sent to jim.ad...@sas.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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


RE: WWDC

2012-04-25 Thread Jim Adams
Someone I know compared it to trying to get tickets to a Stones concert

-Original Message-
From: cocoa-dev-bounces+jim.adams=sas@lists.apple.com 
[mailto:cocoa-dev-bounces+jim.adams=sas@lists.apple.com] On Behalf Of Scott 
Ellsworth
Sent: Wednesday, April 25, 2012 1:41 PM
To: Nathan Sims
Cc: Rick Mann; cocoa-dev@lists.apple.com List
Subject: Re: WWDC

Or, perhaps, a staged rollout across timezones.  Heck, telling people when 
tickets would go on sale would have been a nice step.

Scott

On Wed, Apr 25, 2012 at 10:32 AM, Nathan Sims < newsli...@autonomy.caltech.edu> 
wrote:

> The WWDC 2012 announcement email was dated April 25, 2012 7:04:42 AM PDT.
> *No one* I know of was able to obtain a ticket.
> Maybe they need a raffle or some such?
>
>
> On Apr 25, 2012, at 10:19 AM, Rick Mann wrote:
>
> > Is WWDC really sold out already? I just got the notification email...
> >
> > --
> > Rick
> >
>
> ___
>
> 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:
>
> https://lists.apple.com/mailman/options/cocoa-dev/scott_ellsworth%40al
> umni.hmc.edu
>
> This email sent to scott_ellswo...@alumni.hmc.edu
>
>
___

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:
https://lists.apple.com/mailman/options/cocoa-dev/jim.adams%40sas.com

This email sent to jim.ad...@sas.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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: WWDC

2012-04-25 Thread Eric E. Dolecki
OT but I didn't want to start another thread that might get stomped...

Anyone going to the Mothership (really to buy stuff and just see it) any
time during WWDC?

Maybe we could all arrange a time/place and a bus or something. I think I
remember hearing about someone doing that last year to make it easy? I am
not renting a car just to drive down and back. Unless I have to.

:)



On Wed, Apr 25, 2012 at 2:09 PM, M Pulis  wrote:

> On Apr 25, 2012, at 10:45 AM, vincent habchi wrote:
>
>
>>
>> •••—•—
>>
>> On 25 avr. 2012, at 19:19, Rick Mann  wrote:
>>
>>  Is WWDC really sold out already?
>>>
>>
>> That was faster than the eye can wink. I wonder how many tickets are
>> actually offered.
>>
>
> All of them!
>
> :-)
>
> gary
> "eat, code, sleep"
>
>  Vincent
>>
>>
>> __**_
>>
>> 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:
>> https://lists.apple.com/**mailman/options/cocoa-dev/**
>> toothpic%40fastq.com
>>
>> This email sent to tooth...@fastq.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:
> https://lists.apple.com/**mailman/options/cocoa-dev/**edolecki%40gmail.com
>
> This email sent to edole...@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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

RE: WWDC

2012-04-25 Thread Jim Adams
On the east coast we started at 8:30 so maybe they did stagger it by timezones?

-Original Message-
From: cocoa-dev-bounces+jim.adams=sas@lists.apple.com 
[mailto:cocoa-dev-bounces+jim.adams=sas@lists.apple.com] On Behalf Of Cody 
Garvin
Sent: Wednesday, April 25, 2012 2:13 PM
To: Cocoa-Dev Mail Cocoa-Dev
Subject: Re: WWDC

I was able to get a ticket. On the west coast. I happened to just get done with 
my workout and saw the email. My email was dated at 6:30am pst.



On Apr 25, 2012, at 10:32 AM, Nathan Sims  
wrote:

> The WWDC 2012 announcement email was dated April 25, 2012 7:04:42 AM PDT.
> *No one* I know of was able to obtain a ticket.
> Maybe they need a raffle or some such?
>
>
> On Apr 25, 2012, at 10:19 AM, Rick Mann wrote:
>
>> Is WWDC really sold out already? I just got the notification email...
>>
>> --
>> Rick
>>
>
> ___
>
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/cody%40servalsoft.com
>
> This email sent to c...@servalsoft.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:
https://lists.apple.com/mailman/options/cocoa-dev/jim.adams%40sas.com

This email sent to jim.ad...@sas.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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: WWDC

2012-04-25 Thread Lee Ann Rucker

On Apr 25, 2012, at 11:14 AM, Ravi Singh wrote:

>> I/O sold out in like 28 minutes didn't it? And I thought I heard you had to
>> take some kind of simple test to qualify? I don't know... I'll probably
>> never attend one.
> 
> Total IO BS, No test and there are thousands of stories of people who tried 
> to get a ticket within 10 seconds and got nothing. They said there would be a 
> coding test and there was nothing. Last year IO did their site in ColdFusion 
> . this year, they had a script that pinged the server every 5 mins 
> instead of queuing people up,
> I know it sucks not getting a WWDC ticket but it was really done way better 
> than IO's registration process. 
> 
> I wish they applied a developer test , and just like WWDC offer some sort of 
> pass for people who want to see the keynote and one for people who need to go 
> because they love mobile development. I saw all sorts of people who went to 
> the first day of both and spent the rest of their time just holidaying in SF 
> and after parties. 

Back in the early days you could get tickets for specific days, but that 
depended on them releasing the schedule early so you'd know which days you 
wanted.


___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: WWDC

2012-04-25 Thread Mikkel Islay

On 25 Apr 2012, at 19:47, Ravi Singh wrote:

> I don't think they need to increase the cost, they need to let developers 
> know a week ahead so you can plan for it and limit it to developers only. 

I think an important metric for determining conference size, is (should be) how 
much Apple developer-staff can be made available on-site for attendees to have 
a chance to interact with Apple concerning apps and frameworks. I agree it is a 
pity many who really want to go, can't. Having said that, there are a number of 
community-organised conventions in the US and Europe throughout the year, if 
you can't attend WWDC, those provide great opportunities to network and stay in 
touch, I am sure.

Mikkel
___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: WWDC

2012-04-25 Thread Kok-Yong Tan
And IIRC from the plaques on the walls all over Moscone West, that 
capacity is around 5,200 people including the Apple support staff.


Also, back in the day when there was overlap between JavaOne and WWDC, 
to confirm what Mark Gerl mentions below, I recall banners for JavaOne 
advertising it being over in Moscone North and/or Moscone South along 
with lots of JavaOne attendees mingling around while we were attending WWDC.


Reality Artisans, Inc. #   Network Wrangling and Delousing
P.O. Box 565, Gracie Station   #   Apple Certified Consultant
New York, NY 10028-0019#   Apple Consultants Network member
#   Apple Developer Connection member
(212) 369-4876 (Voice) #   My PGP public key can be found 
at


On 4/25/12 14:14, Mark D. Gerl wrote:

Incorrect.

Moscone West Conference Center is not same venue as North/South Convention 
Center.  Apple sells to Fire-Marshall capacity of the venue.

Mark

Sent from my iOS device

On Apr 25, 2012, at 1:45 PM, Rob Ross  wrote:


Java One regularly had 15,000 in its heyday, at the exact same Moscone
Center venue.




smime.p7s
Description: S/MIME Cryptographic Signature
___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: WWDC

2012-04-25 Thread Thomas Davie
Do you have a bug number that I could reference?

I'd probably like to file one asking them to do *several* WWDCs around the 
world – the cost to people in the bay area is already pretty high ($1.6k ish 
per attendee), but to someone in the UK, the cost is more like $4k per 
attendee.  Plus of course doing several would kill the second stone of having 
more spaces available!

Bob
if (*ra4 != 0xffc78948) { return false; }

On 25 Apr 2012, at 18:45, Rob Ross wrote:

> I filed a bug report under "other" asking them to increase the numbers of
> attendees at future WWDC. They should be able to do it, if they want to.
> Java One regularly had 15,000 in its heyday, at the exact same Moscone
> Center venue.
> 
> On Wednesday, April 25, 2012, Nathan Sims 
> wrote:
>> The WWDC 2012 announcement email was dated April 25, 2012 7:04:42 AM PDT.
>> *No one* I know of was able to obtain a ticket.
>> Maybe they need a raffle or some such?
>> 
>> 
>> On Apr 25, 2012, at 10:19 AM, Rick Mann wrote:
>> 
>>> Is WWDC really sold out already? I just got the notification email...
>>> 
>>> --
>>> Rick
>>> 
>> 
>> ___
>> 
>> 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:
>> https://lists.apple.com/mailman/options/cocoa-dev/rob.ross%40gmail.com
>> 
>> This email sent to rob.r...@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:
> https://lists.apple.com/mailman/options/cocoa-dev/tom.davie%40gmail.com
> 
> This email sent to tom.da...@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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Re: WWDC

2012-04-25 Thread Vincent Habchi
On 25 avr. 2012, at 20:41, Mikkel Islay  wrote:

> apps and frameworks. I agree it is a pity many who really want to go, can't. 
> Having said that, there are a number of community-organised conventions in 
> the US and Europe throughout the year, if you can't attend WWDC, those 
> provide great opportunities to network and stay in touch, I am sure.

Uh? There was a iOS 5 tour in Europe I heard of, but nothing concerning OS X 
this year or the year before AFAIK.

Vincent
___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: WWDC

2012-04-25 Thread Kok-Yong Tan

On 4/25/12 15:34, Vincent Habchi wrote:

On 25 avr. 2012, at 20:41, Mikkel Islay  wrote:


apps and frameworks. I agree it is a pity many who really want to go, can't. 
Having said that, there are a number of community-organised conventions in the 
US and Europe throughout the year, if you can't attend WWDC, those provide 
great opportunities to network and stay in touch, I am sure.

Uh? There was a iOS 5 tour in Europe I heard of, but nothing concerning OS X 
this year or the year before AFAIK.

Vincent


There is the MacTech Conference (which has a MacOS and iOS developer 
track) held for the last two years around October/November in the 
Sheraton Universal City in Los Angeles.  Not as huge as WWDC nor as 
extensive nor glamorous nor expensive, admittedly, but different.  See 
.  Hope this helps.


Reality Artisans, Inc. #   Network Wrangling and Delousing
P.O. Box 565, Gracie Station   #   Apple Certified Consultant
New York, NY 10028-0019#   Apple Consultants Network member
#   Apple Developer Connection member
(212) 369-4876 (Voice) #   My PGP public key can be found 
at






smime.p7s
Description: S/MIME Cryptographic Signature
___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: WWDC

2012-04-25 Thread Mikkel Islay

On 25 Apr 2012, at 21:34, Vincent Habchi wrote:

> Uh? There was a iOS 5 tour in Europe I heard of, but nothing concerning OS X 
> this year or the year before AFAIK.

For OS X, the NSConference (UK) is one, certainly.  http://youtu.be/SKaThGBuSdc
However, you are right. iOS seems to be the most energised segment at the 
moment.
I suppose it is hard to rival WWDC, but not centring all interactions around 
Apple events exclusively, is healthy for the developer community.

Mikkel
___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: WWDC

2012-04-25 Thread Scott Ribe
On Apr 25, 2012, at 1:11 PM, Thomas Davie wrote:

> I'd probably like to file one asking them to do *several* WWDCs around the 
> world – the cost to people in the bay area is already pretty high ($1.6k ish 
> per attendee), but to someone in the UK, the cost is more like $4k per 
> attendee.  Plus of course doing several would kill the second stone of having 
> more spaces available!

Exactly how many weeks per year do you think Apple's engineers should take away 
from their primary jobs in order put on WWDCs? Or to put my point more 
directly: this will never happen, for very good reasons. WWDC is very special 
because Apple makes the engineers who create the OS & frameworks & tools 
available for direct interaction. That makes it a wonderful resource for 
developers, but also an inherently constrained one.

I'd personally rather have it this way and difficult to access, than have the 
typical conference: run mostly by presenters with a week of training, and maybe 
the occasional engineering manager showing up for an hour to give a speech 
before being whisked back to work.


-- 
Scott Ribe
scott_r...@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice





___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Re: WWDC

2012-04-25 Thread Wade Tregaskis
> I'd probably like to file one asking them to do *several* WWDCs around the 
> world – the cost to people in the bay area is already pretty high ($1.6k ish 
> per attendee), but to someone in the UK, the cost is more like $4k per 
> attendee.  Plus of course doing several would kill the second stone of having 
> more spaces available!

As Scott noted, this isn't as efficient, or really practical in any sense.  As 
it is WWDC has a huge impact on Apple's engineers - aside from the week itself 
(during which only a thousand or so are at WWDC, at most, on any given day) 
there's a lot of preparation for the month or two prior.  Developer relations 
in particular are working their nuts off to not only get the conference itself 
in order, but ancillary things like make sure all the presenters are up to 
snuff, that relevant sample code is ready and to a proper standard, etc etc.

Also, physical presence really isn't that useful.  There is certainly a 
camaraderie that comes from being physically together, which is all warm and 
fuzzy and all, but for the most part boring old telepresence solutions (even 
email, of all things!) is a perfectly good way to work together with an Apple 
engineer.  So what you really should be asking pointed questions about, of 
Apple, is why you can't get in direct contact with relevant engineers 
occasionally.  ("Technical Support Incidents" are (were?) vaguely of this 
nature, though the indirection through developer relations can be problematic 
for everyone involved)
___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Re: WWDC

2012-04-25 Thread Robert Tillyard
Although I'd love to go to WWDC being based in the UK makes it expensive and 
difficult but I don't feel that I miss out too much as I can watch the sessions 
which really helps me learn new stuff.

Regards, Rob.

On 25 Apr 2012, at 20:11, Thomas Davie wrote:

> Do you have a bug number that I could reference?
> 
> I'd probably like to file one asking them to do *several* WWDCs around the 
> world – the cost to people in the bay area is already pretty high ($1.6k ish 
> per attendee), but to someone in the UK, the cost is more like $4k per 
> attendee.  Plus of course doing several would kill the second stone of having 
> more spaces available!
> 
> Bob
> if (*ra4 != 0xffc78948) { return false; }


___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Re: WWDC

2012-04-25 Thread Wade Tregaskis
> I filed a bug report under "other" asking them to increase the numbers of
> attendees at future WWDC.

I thought this for a long time, but then came to the realisation that what's 
really valuable about WWDC just doesn't scale:  access to Apple engineers.

This wasn't always the case.  The WWDC presentations used to be jealously 
guarded treasures. Now they're much more readily available.  There's still some 
benefit to actually attending - you'll be able to access sessions from the 
conference indefinitely, rather than only for a year or two afterwards - and 
there are networking aspects and 3rd party events etc.  But I think these pale 
in comparison to the exclusive utility of Apple engineer access.

I'd even go so far as to say that today, if you're not spending most of your 
time in the labs or otherwise hunting down people to address specific issues, 
you're detracting from the common good (in the sense that there's a lot of 
others out there who missed out on WWDC tickets who would be doing just that, 
in your place).

Likewise for people that walk into the labs and say things like "So I just 
opened Xcode for the first time - how's it work?".  As an Apple engineer 
working the labs a couple of years, I have to admit I really dreaded that level 
of question, on so many levels.  I couldn't fathom how someone could throw down 
thousands of dollars to attend a conference yet not be enough into development 
to actually use and know a bit about the tools involved.  Treating the 
developer labs like CS 101 is the most expensive class you'll ever pay for.

Keep in mind that if you sufficiently impress an Apple engineer, whether by 
being generally clever / entertaining / generous / interesting - all largely 
functions of the type of problem you go to them with - then some will be 
willing to give you their direct contact details, and you can follow up with 
them after the conference.  Maybe even on other issues, and some time later.  
And they can use that time to really dig into your issue, back in their office, 
and give you a precise answer you just can't get in a face-to-face meeting.
___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: WWDC

2012-04-25 Thread Kyle Sluder
On Apr 25, 2012, at 2:56 PM, Wade Tregaskis wrote:

>> I filed a bug report under "other" asking them to increase the numbers of
>> attendees at future WWDC.
> 
> I thought this for a long time, but then came to the realisation that what's 
> really valuable about WWDC just doesn't scale:  access to Apple engineers.

I agree completely, which is why I decided to explore the idea of converting 
WWDC to a festival centered around opening up access to Apple engineers:

http://www.optshiftk.com/2012/04/wwdc-of-the-future/

--Kyle Sluder
___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: WWDC

2012-04-25 Thread Charlie Dickman
Would you please take this interchange off the air? There is such a thing as 
private email. My inbox is choked with this stuff which is, in my opinion, off 
topic.

On Apr 25, 2012, at 5:56 PM, Wade Tregaskis wrote:

>> I filed a bug report under "other" asking them to increase the numbers of
>> attendees at future WWDC.
> 
> I thought this for a long time, but then came to the realisation that what's 
> really valuable about WWDC just doesn't scale:  access to Apple engineers.
> 
> This wasn't always the case.  The WWDC presentations used to be jealously 
> guarded treasures. Now they're much more readily available.  There's still 
> some benefit to actually attending - you'll be able to access sessions from 
> the conference indefinitely, rather than only for a year or two afterwards - 
> and there are networking aspects and 3rd party events etc.  But I think these 
> pale in comparison to the exclusive utility of Apple engineer access.
> 
> I'd even go so far as to say that today, if you're not spending most of your 
> time in the labs or otherwise hunting down people to address specific issues, 
> you're detracting from the common good (in the sense that there's a lot of 
> others out there who missed out on WWDC tickets who would be doing just that, 
> in your place).
> 
> Likewise for people that walk into the labs and say things like "So I just 
> opened Xcode for the first time - how's it work?".  As an Apple engineer 
> working the labs a couple of years, I have to admit I really dreaded that 
> level of question, on so many levels.  I couldn't fathom how someone could 
> throw down thousands of dollars to attend a conference yet not be enough into 
> development to actually use and know a bit about the tools involved.  
> Treating the developer labs like CS 101 is the most expensive class you'll 
> ever pay for.
> 
> Keep in mind that if you sufficiently impress an Apple engineer, whether by 
> being generally clever / entertaining / generous / interesting - all largely 
> functions of the type of problem you go to them with - then some will be 
> willing to give you their direct contact details, and you can follow up with 
> them after the conference.  Maybe even on other issues, and some time later.  
> And they can use that time to really dig into your issue, back in their 
> office, and give you a precise answer you just can't get in a face-to-face 
> meeting.
> ___
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/3tothe4th%40comcast.net
> 
> This email sent to 3tothe...@comcast.net

Charlie Dickman
3tothe...@comcast.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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: WWDC

2012-04-25 Thread Roy Lovejoy
IMHO, the "D" of WWDC should be enforced (though I don't know how)

Of the dozens of people from Microsoft who would attend regularly, 
approximately 10% were developers.

The rest were PMs, Managers, and anyone else who just 'wanted to go to SF for 
the week'.


On Apr 25, 2012, at 2:34 PM, Robert Tillyard wrote:

> Although I'd love to go to WWDC being based in the UK makes it expensive and 
> difficult but I don't feel that I miss out too much as I can watch the 
> sessions which really helps me learn new stuff.
> 
> Regards, Rob.
> 
> On 25 Apr 2012, at 20:11, Thomas Davie wrote:
> 
>> Do you have a bug number that I could reference?
>> 
>> I'd probably like to file one asking them to do *several* WWDCs around the 
>> world – the cost to people in the bay area is already pretty high ($1.6k ish 
>> per attendee), but to someone in the UK, the cost is more like $4k per 
>> attendee.  Plus of course doing several would kill the second stone of 
>> having more spaces available!
>> 
>> Bob
>> if (*ra4 != 0xffc78948) { return false; }
> 
> 
> ___
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/roy%40amalgamatedcoders.com
> 
> This email sent to r...@amalgamatedcoders.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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Re: WWDC

2012-04-25 Thread Laurent Daudelin
On Apr 25, 2012, at 15:03, Charlie Dickman wrote:

> Would you please take this interchange off the air? There is such a thing as 
> private email. My inbox is choked with this stuff which is, in my opinion, 
> off topic.

You know, no offense but it's pretty easy to setup a rule in Mail to have these 
messages sent directly to your trash.

-Laurent.
-- 
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin 
http://www.nemesys-soft.com/
Logiciels Nemesys Software  
laur...@nemesys-soft.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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: WWDC

2012-04-25 Thread Scott Ribe
On Apr 25, 2012, at 3:12 PM, Alex Kac wrote:

> And a reminder - the iTunes U videos/PDFs given to us who don't go is 
> invaluable.

Yes, that's an area where Apple really got its act together in recent years.

-- 
Scott Ribe
scott_r...@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice





___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: WWDC

2012-04-25 Thread koko

On Apr 25, 2012, at 2:06 PM, Mikkel Islay wrote:

> the NSConference 

Violation … only Apple can use the NS prefix !
___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Re: WWDC

2012-04-25 Thread Conrad Shultz
On 4/25/12 3:44 PM, koko wrote:
> 
> On Apr 25, 2012, at 2:06 PM, Mikkel Islay wrote:
> 
>> the NSConference 
> 
> Violation … only Apple can use the NS prefix !

Do you understand *why* everyone was making a big deal about your choice
of prefix?  It's not because people here derive satisfaction from
enforcing Apple's guidelines or documentation notes.

Apple actually reserves ALL two letter prefixes (don't have the doc link
handy, but trust me that this is the case).  In addition to NS, some
others that they use:  UI, CT, SK, MF, CI, CT, CM come to mind.

The main reason for this reservation is to prevent collision of a class
that might be furnished in a future SDK with your classes.  By choosing
to use a two-letter prefix you are creating the possibility that some OS
update, for example, will suddenly break your application.

The same logic applies to prefixing method names in categories.  Doubly
so for root classes.  For example, in a category on NSObject, instead of
writing

-performBlock:afterDelay:

I opted to use:

-SQS_performBlock:afterDelay:

(Because of course Apple would *never* add a -performBlock:afterDelay:
method.)

-- 
Conrad Shultz

Synthetiq Solutions
www.synthetiqsolutions.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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Re: WWDC

2012-04-25 Thread Kyle Sluder
On Apr 25, 2012, at 4:08 PM, Conrad Shultz wrote:

> On 4/25/12 3:44 PM, koko wrote:
>> 
>> On Apr 25, 2012, at 2:06 PM, Mikkel Islay wrote:
>> 
>>> the NSConference 
>> 
>> Violation … only Apple can use the NS prefix !
> 
> Do you understand *why* everyone was making a big deal about your choice
> of prefix?  It's not because people here derive satisfaction from
> enforcing Apple's guidelines or documentation notes.
> 
> Apple actually reserves ALL two letter prefixes (don't have the doc link
> handy, but trust me that this is the case).  In addition to NS, some
> others that they use:  UI, CT, SK, MF, CI, CT, CM come to mind.

They also use some three-letter prefixes, like DOM and Web. So there's really 
no safety here.

> 
> The main reason for this reservation is to prevent collision of a class
> that might be furnished in a future SDK with your classes.  By choosing
> to use a two-letter prefix you are creating the possibility that some OS
> update, for example, will suddenly break your application.
> 
> The same logic applies to prefixing method names in categories.  Doubly
> so for root classes.  For example, in a category on NSObject, instead of
> writing
> 
> -performBlock:afterDelay:
> 
> I opted to use:
> 
> -SQS_performBlock:afterDelay:
> 
> (Because of course Apple would *never* add a -performBlock:afterDelay:
> method.)

The real solution to this problem is true namespaces instead of the ad-hoc 
prefixing we currently abuse: 
http://www.optshiftk.com/2012/04/draft-proposal-for-namespaces-in-objective-c/

--Kyle Sluder
___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Re: WWDC

2012-04-25 Thread Charles Srstka
On Apr 25, 2012, at 5:44 PM, koko wrote:

> On Apr 25, 2012, at 2:06 PM, Mikkel Islay wrote:
> 
>> the NSConference 
> 
> Violation … only Apple can use the NS prefix !

For that matter, Apple Events aren’t supposed to be used by applications in the 
sandbox. ;-)

Charles
___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Re: WWDC

2012-04-25 Thread koko

On Apr 25, 2012, at 5:08 PM, Conrad Shultz wrote:

> Do you understand *why* everyone was making a big deal about your choice
> of prefix?

Absolutely I do.  In fact when I posted th ecode sample that used NS and was 
clued on it I went DOH!

I was using it to distinguish from corresponding CPP classes.  We have a great 
cross-platform method which lets us ship a Mac and Windows version at the same 
time.  Why?  Well we thin wrap MFC controls and use all logic from the CPP 
files without significant MVC concerns.  So for Mac thin wrapped code I chose 
to name files as NS … easy to spot in the tree … I should have used M.  I'll 
probably go back and grep NS to M.

Example:

CPropMonogram.cpp implements an MFC dialog for monogramming properties.

NSPropMonogram.m is a thin wrap and calls all logic in CPropMonogram. 

NOTE:  Due to some cool stuff CPropMonogram.cpp, while full of MFC, compiles 
without #ifdef's

MPropMonogram is more correct for naming, I agree.

-koko



___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Executing a very low-priority operation in iOS

2012-04-25 Thread Rick Mann
We have an app whose main function (on the main runloop) operates on a timer at 
about 30 Hz (eventually triggering a display update).

We want to run a separate period function on the order of once a minute. The 
operation itself is lengthy, and I want it to not impact the main function of 
the app. I want it to run on a thread of lower priority, so that it is 
interrupted every time our timer fires, and that our main runloop is never 
preempted in favor of the lower-priority task.

Normally I'd set up a timer to fire in a minute, set up an NSBlockOperation, 
and let it go. When it finishes, I'd repeat the process.

But I don't see any way to adjust the priority of an NSOperationQueue.

Do I need to create my own NSThread for this? Can I get at the thread of an 
NSOperationQueue and adjust its priority? I didn't think an NSOperationQueue 
was guaranteed to always run on the same thread.

Thanks,

-- 
Rick


___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: WWDC

2012-04-25 Thread Graham Cox

On 26/04/2012, at 9:43 AM, koko wrote:

> So for Mac thin wrapped code I chose to name files as NS … easy to spot in 
> the tree … I should have used M.  I'll probably go back and grep NS to M.


And that's where your choice is going to really bite you, because now you'll 
rename all the legitimately named 'NS' classes you inevitably use accidentally. 
Good luck figuring out a way to automatically tell apart one group of classes 
from another.

--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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

RE: Executing a very low-priority operation in iOS

2012-04-25 Thread Julius Oklamcak
> Normally I'd set up a timer to fire in a minute, set up an
NSBlockOperation,
> and let it go. When it finishes, I'd repeat the process. But I don't see
any
> way to adjust the priority of an NSOperationQueue.

NSBlockOperation inherits from NSOperation so you should be able to
-setQueuePriority: and/or -setThreadPriority: on it.

You could also use something like the following to run the block:

dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND,
0),
^{
// ...
});

___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: Executing a very low-priority operation in iOS

2012-04-25 Thread Rick Mann

On Apr 25, 2012, at 17:50 , Julius Oklamcak wrote:

>> Normally I'd set up a timer to fire in a minute, set up an
> NSBlockOperation,
>> and let it go. When it finishes, I'd repeat the process. But I don't see
> any
>> way to adjust the priority of an NSOperationQueue.
> 
> NSBlockOperation inherits from NSOperation so you should be able to
> -setQueuePriority: and/or -setThreadPriority: on it.

-setQueuePriority:, I think, only adjusts the priority of that operation 
relative to other operations on that queue.

But -setThreadPriority: is obvious; I didn't even see it there, despite staring 
right at it.

Thanks!
-- 
Rick

> 
> You could also use something like the following to run the block:
> 
> dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND,
> 0),
> ^{
>   // ...
> });
> 


___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


NSOperation thread priority ignored?

2012-04-25 Thread Rick Mann
I'm trying to create an NSBlockOperation and set its thread priority. But when 
the block executes, the thread priority of the running thread is 0.5. The code 
is below. Here's what it logs:

2012-04-25 20:22:47.096 app[13283:494b] UPDATING MAG MODEL. Thread {name = (null), num = 33} priority: 0.50. Main: 0

The thread priority should be 0.1. Am I overlooking something?

- (void)
updateMagModel: (NSTimer*) inTimer
{
NSBlockOperation* op = [NSBlockOperation blockOperationWithBlock:
^{
//  TODO: update the model.

NSThread* t = [NSThread currentThread];
NSLog(@"UPDATING MAG MODEL. Thread %@ priority: %f. Main: %d", t, 
t.threadPriority, [NSThread mainThread] == t);
}];

op.threadPriority = 0.1;

op.completionBlock =
^{
//  Schedule the timer to fire the next operation, but
//  make sure to do it on the main queue, so that the
//  setup code runs on the main queue…

[NSOperationQueue addOperationOnMainQueueWithBlock:
^{
[NSTimer scheduledTimerWithTimeInterval: kMagModelUpdateInterval
target: self
selector: @selector(updateMagModel:)
userInfo: nil
repeats: false];
}];
};

[mMagModelUpdateQueue addOperation: op];
}

Thanks!

-- 
Rick


___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Why can't I change the font used by an NSTextField?

2012-04-25 Thread Matt Mower
Hi folks. 

I am using a source list view (view based NSOutlineView) and trying to display 
some items in bold text (using the default system font, not a custom font) and 
it's not working.

In interface builder I have the default non-group NSTableCellView that was 
created when I dragged in the source list. I use a subclass to handle the font 
selection logic but otherwise it's vanilla. My calls to -setStringValue: on the 
NSTextField work fine.

However calling -setFont: does not change the font that's used to display the 
item labels in the outline. After calling -setFont: both the NSTextField and 
it's corresponding cell both respond with the correct font info. But they go 
ahead and draw in the regular font anyway.

I've tried turning on RichText for the view, no difference.

Finally I tried changing the font directly in InterfaceBuilder. I set it to 
System font 18pt and in Interface Builder it looks right. But, when I run the 
app, the outline items are all drawn in the regular font!

At this point the relevant code boils down to:

[[self textField] setFont:[NSFont boldSystemFontOfSize:6.0]];

[[self textField] setStringValue:[pond name]];
[[self imageView] setObjectValue:[pond sidebarIconImage]];



Logging the font after the call to setFont shows the correct font. The call to 
-setStringValue: (and to set the icon) both work.

At this point I am baffled and figure I am missing something obvious about view 
based outline view drawing but I have no clue what. Nor can I glean anything 
from  Google or StackOverflow. If anyone could help me I'd be most grateful.

Kind regards,

Matt 

-- 
http://mattmower.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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Concurrency: DataSource modified while TableView is displaying data

2012-04-25 Thread Jean Suisse
Hi All,

I have an NSTableView whose DataSource and delegate is a custom controller 
 holding an NSMutableArray 
(containing a list of "Task/job" objects).
The tableView is used to display "Tasks" waiting to be executed. When 
activated, the "Task" is requested to post its blocks on a serial queue by the 
controller.
The last block posted by all tasks will actually notify (objC message) the 
controller that the task has ended. The controller will remove the task from 
the list and request the NSTableView to reload its data. This, I presume, is 
executed from the serial queue.

Sometimes, I get an out of bounds exception from my data source (the 
NSMutableArray owned by the controller).

I am thinking:
The issue is that, sometimes, between the time the NSMutableArray is requested 
to remove an object and the time the tableView is requested to reload its data, 
some external event (rare) may trigger a redraw. The tableView, unaware that 
one element is now missing, requests from the data source an element whose row 
number is equal to the datasource's count (=> out of bounds by 1 index).

What's troubling me:
When stepping through the programming with the debugger, I plainly see that the 
tableView has requested the number of elements in the datasource half a dozen 
of times before making the mistake of requesting an out-of-bounds element 
(thus, the tableview should be well aware of the new count).

Currently, every modification of the datasource is immediately followed by a 
reloadData request to the tableView. Is there a way to ensure that these two 
consecutive calls are executed without the processor switching to an other 
thread ?

Cheers,
Jean
___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


Re: How to get the embossed look of the entire cell in UITableView?

2012-04-25 Thread Trevor Sheridan
This might be worth looking into for a concrete code example:
https://skytrix.qx.ly/b/tHq4

Trevor

On Apr 25, 2012, at 9:53 AM, Fritz Anderson  wrote:

> On 21 Apr 2012, at 5:36 PM, The Rhythmic wrote:
>
>> Hi, Am a newbie to iOS programming. In the app am writing, am adding user
>> inputs dynamically/programmatically to UITableView. For each user input, I
>> put it in a UITableViewCell and add it to the UITableView. I want the table
>> cells to look like in the iPhone 'Messages' screen (like a bubble or some
>> embossed look of the 'entire' cell). How is this possible? Any help please?
>
> Prepare your background image so it shows all your effects for the corners 
> and sides, around the smallest practical content: The smallest correct 
> representation of your bubble. Add it to your project as a resource. Load the 
> resource from the bundle as a UIImage. Send it -resizableImageWithCapInsets:. 
> Now you have an image you can use as a background that you can stretch to fit 
> the content.
>
>— F
>
>
> ___
>
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/trevorjordansheridan%40gmail.com
>
> This email sent to trevorjordansheri...@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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Question about dispatch_timer function

2012-04-25 Thread Kévin Vavelin
Hi there,

I've a question about the dispatch_timer function. I try to make a strobe flash 
on my iPhone app and for that i used an NSTimer but a friend of mine say that 
it's better to use dispatch function. So i was looking and try to implement 
something. I explain my code before post anything :
I have a UISlider in another view (settings.strobeValue) and get his value for 
settings the timer. And i called changeStrobeState in another function who wll 
be called by dispatch function. But when i hit the button on my view and send 
my dispatch code, no work at all... So there is the code :

-(void)changeStrobeState
{
if (NO == [[NSUserDefaults standardUserDefaults] 
boolForKey:@"buttonStrobeState"])
{
[deviceCapture lockForConfiguration:nil];
[deviceCapture setTorchMode:AVCaptureTorchModeOff];
[deviceCapture unlockForConfiguration];
}
else 
{
[deviceCapture lockForConfiguration:nil];
[deviceCapture setTorchMode:AVCaptureTorchModeOn];
[deviceCapture unlockForConfiguration];
}
BOOL state = [[NSUserDefaults standardUserDefaults] 
boolForKey:@"buttonStrobeState"];
[[NSUserDefaults standardUserDefaults] setBool:!state 
forKey:@"buttonStrobeState"];

}


- (dispatch_source_t)setupStrobeTimer {
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
dispatch_queue_t queue = 
dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
 _strobeTimer = dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER, 0, 
0, queue);
if (_strobeTimer) {
dispatch_source_set_timer(_strobeTimer, 
dispatch_walltime(DISPATCH_TIME_NOW, settings.strobeValue * NSEC_PER_SEC), 
  settings.strobeValue * NSEC_PER_SEC, 6ull 
* NSEC_PER_SEC);
__block ViewController *blockSelf = self;
dispatch_source_set_event_handler(_strobeTimer, ^{
[blockSelf changeStrobeState];
});
}
});
return _strobeTimer;
}

Can you help me ?

Thanks for reading and sorry 'cause my english is not perfect and it's actually 
3 AM here :)

Cheers,
Vavelin Kevin
Twitter | Blog | Viadeo

___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


[Moderator] Re: WWDC

2012-04-25 Thread Scott Anguish
Please, don’t discuss WWDC issues here. Contact WWDR directly.

Thanks

Scott Anguish
[moderator]


On Apr 25, 2012, at 1:19 PM, Rick Mann wrote:

> Is WWDC really sold out already? I just got the notification email...
> 
> -- 
> Rick
> 
> ___
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/scott%40cocoadoc.com
> 
> This email sent to sc...@cocoadoc.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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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

Re: Why can't I change the font used by an NSTextField?

2012-04-25 Thread Kyle Sluder
On Apr 24, 2012, at 3:17 AM, Matt Mower  wrote:

> I am using a source list view (view based NSOutlineView) and trying to 
> display some items in bold text (using the default system font, not a custom 
> font) and it's not working.

I'm guessing that you've hooked up your text field to the textField outlet of 
the NSTableCellView? If so, I think you might be running into NSTableView's 
automatic management of appearance for source lists.

Try disconnecting the text field from the textField outlet and see if your 
custom font sticks.

--Kyle Sluder

___

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

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


removeFromSuperview problem

2012-04-25 Thread Leanne Attard
Problem explanation:

I am doing a Java application which calls a JNI Library to draw using OpenGL on 
the window created by JAVA, using the JAWT NSView 
handle given as in example:  
http://developer.apple.com/library/mac/#samplecode/JAWTExample/Introduction/Intro.html,
 and then adding 
a customized NSView to the NSView given, as a subview.

When a window is resized to a smaller size the JAVA side of my code  calls a 
native function in my library to remove the native subview added 
earlier.  This is when the application stalls (Not Responding). Upon forcing 
the application to quit, a crash report pops up part of which is shown 
below.  As far as I can  understand this, there is a deadlock.  This happens 
upon calling removeFromSuperview method in NSView.   This is called 
on a different thread than the one in which the subview was added.  Can this be 
the issue causing the problem?  Any help is greatly appreciated.
Can this function be called on a different thread than the one on which 
'addsubview' was called?


  Thread 3f1b6 
  User stack:
19 thread_start + 13 (in libSystem.B.dylib) [0x7fff850a5e89]
  19 _pthread_start + 331 (in libSystem.B.dylib) [0x7fff850a5fd6]
19 jio_snprintf + 35946 (in libclient64.dylib) [0x10100d244]
  19 JVM_StartThread + 1362 (in libclient64.dylib) [0x1010b0cf5]
19 JVM_StartThread + 1853 (in libclient64.dylib) [0x1010b0ee0]
  19 JVM_StartThread + 2203 (in libclient64.dylib) [0x1010b103e]
19 JVM_StartThread + 2299 (in libclient64.dylib) [0x1010b109e]
  19 JVM_StartThread + 2565 (in libclient64.dylib) [0x1010b11a8]
19 JVM_Lseek + 193197 (in libclient64.dylib) [0x1010a511e]
  19 ??? [0x104001438]
19 ??? [0x10400685a]
  19 ??? [0x10400685a]
19 ??? [0x10400685a]
  19 ??? [0x10400685a]
19 ??? [0x104006a82]
  19 ??? [0x10400685a]
19 ??? [0x104006e8d]
  19 ??? [0x1040069b3]
19 ??? [0x104011d6e]
  19 JVM_DoPrivileged + 93 (in 
libjvmlinkage.dylib) [0x1000961ad]
19 JVM_DoPrivileged + 560 (in 
libclient64.dylib) [0x1010b03b5]
  19 JVM_Lseek + 192625 (in 
libclient64.dylib) [0x1010a4ee2]
19 JVM_Lseek + 193197 (in 
libclient64.dylib) [0x1010a511e]
  19 ??? [0x104001438]
19 ??? [0x1040069b3]
  19 ??? [0x10400685a]
19 ??? [0x10400685a]
  19 ??? [0x104006d34]
19 ??? [0x10400685a]
  19 ??? 
[0x104006d34]
19 ??? 
[0x10400685a]
  19 ??? 
[0x10400685a]
19 ??? 
[0x10400685a]
  19 ??? 
[0x10400685a]
19 ??? 
[0x10400685a]
  19 
??? [0x10400685a]
19 
??? [0x10400685a]
  
19 ??? [0x10400685a]

19 ??? [0x10400685a]

  19 ??? [0x10400685a]

19 ??? [0x10400685a]

  19 ??? [0x10400685a]

19 ??? [0x104006a82]

  19 ??? [0x104011d6e]

19 Java_hob_rdp_ui_sys_c_1rdpuimanager_00024c_1painter_n_1remove + 
84 (rdpde.mm:370 in libmacrdpui.dylib) [0x1244b7cca]

  19 hob::rdp::c_rdpwindow::unparent_window() + 339 
(macrdpui.hpp:802 in libmacrd