Re: Callback when OS delivers console msg for my process?

2009-11-13 Thread Joel Levin
You might try checking NSImage's -isValid after loading it.

- Joel

On Nov 13, 2009, at 11:23 AM, Trygve Inda wrote:

> I use:
> 
> imageWithContentsOfFile:@"a.jpg"
> 
> And sometime it generates a console message:
> 
> Corrupt JPEG data: premature end of data segment
> 
> How can I use an observer/exception handler or other notification to detect
> such messages as NSImage accepts this image as valid when it is not.
> 
> Something deeper in the OS knows the problem and I'd like to be notified.
> 
> Thanks,
> 
> Trygve
> 
> 
> ___
> 
> 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/joel_levin%40apple.com
> 
> This email sent to joel_le...@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: Callback when OS delivers console msg for my process?

2009-11-13 Thread Joel Levin
This has been a known issue and was supposedly fixed in Snow Leopard - are you 
running 10.5 by any chance? If you are running Snow Leopard, I would recommend 
filing a radar at http://bugreport.apple.com.

- Joel

On Nov 13, 2009, at 12:13 PM, Trygve Inda wrote:

>> You might try checking NSImage's -isValid after loading it.
>> 
>> - Joel
>> 
>> On Nov 13, 2009, at 11:23 AM, Trygve Inda wrote:
> 
> isValid returns YES
> 
> Immediately afterwards calling
> 
> [image drawInRect:myRect fromRect:imageRect operation:NSCompositeCopy
> fraction:1.0];
> 
> Send this to the console:
> 
> : Corrupt JPEG data: premature end of data segment
> 
> The image IS corrupt, but I see no way to detect it.
> 
> What a pain.
> 
> Trygve
> 
> 

___

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=1&method=mExternal.showJob&RID=42178&CurrentPage=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