Re: Lion: Strange issue in NSTableView

2011-11-30 Thread Florian Soenens
Hi Apparao,

does the tableview use a custom cell? If so, i suggest you look into overriding 
 - (int)hitTestForEvent:(NSEvent *)event inRect:(NSRect)cellFrame 
ofView:(NSView *)controlView

Don't know if that will solve your particular issue but it's worth a try.

Best,
Florian.


On 01 Dec 2011, at 06:44, Appa Rao Mulpuri wrote:

 Hello List,
 
 I am observing the strange issue in NSTAbleView on Mac OS X 10.7.  
 NStableView has the support like user can select multiple rows in sequence 
 using mouse drag. Same code is working fine in Snow leopard, but couldn't in 
 Lion. I had a look at 
 http://developer.apple.com/library/mac/#releasenotes/Cocoa/AppKit.html page 
 for Applit NSTableView changes, which doesn't have anything specific to this 
 issue included majorly Source list kind changes. Do I need to set the flag to 
 get this functionality in NStableView in Lion?
 
 - Apparao Mulpuri
 
 
 This email and any attachments are confidential, and may be legally 
 privileged and protected by copyright. If you are not the intended recipient 
 dissemination or copying of this email is prohibited. If you have received 
 this in error, please notify the sender by replying by email and then delete 
 the email completely from your system. Any views or opinions are solely those 
 of the sender. This communication is not intended to form a binding contract 
 unless expressly indicated to the contrary and properly authorised. Any 
 actions taken on the basis of this email are at the recipient's own risk.
 
 
 This email is sent for and on behalf of Ivy Comptech Private Limited. Ivy 
 Comptech Private Limited is a limited liability company.
 
 This email and any attachments are confidential, and may be legally 
 privileged and protected by copyright. If you are not the intended recipient 
 dissemination or copying of this email is prohibited. If you have received 
 this in error, please notify the sender by replying by email and then delete 
 the email completely from your system.
 Any views or opinions are solely those of the sender.  This communication is 
 not intended to form a binding contract on behalf of Ivy Comptech Private 
 Limited unless expressly indicated to the contrary and properly authorised. 
 Any actions taken on the basis of this email are at the recipient's own risk.
 
 Registered office:
 Ivy Comptech Private Limited, Cyber Spazio, Road No. 2, Banjara Hills, 
 Hyderabad 500 033, Andhra Pradesh, India. Registered number: 37994. 
 Registered in India. A list of members' names is available for inspection at 
 the registered office.
 
 ___
 
 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/florian.soenens%40nss.be
 
 This email sent to florian.soen...@nss.be



Vit2Print.com NVTieltstraat 1678740 PittemBelgiumPhone : +32 51 42 40 15Fax : 
+32 51 40 29 22Web : www.vit2print.com





___
This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.



inline: image/jpeg___

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


PDFKit pdf version

2011-08-11 Thread Florian Soenens
Hi list,

i've seen this discussion before around 2006 but found no relevant answer, here 
goes:

We have a Foundation tool which adds annotations to a pdf and saves the pdf to 
disk again.
We use the PDFKit classes for that.

Now, when processing a pdf that has pdf-version 1.5 (Created from InDesign), 
after saving our pdf, it becomes version 1.4, we also noticed the same behavior 
with Preview.app, saving this same pdf also reduces the version to 1.4.

Question is, can we force the version to stay the same or is this a 
restriction in Quartz?
Below is a code snippet.

Thanks in advance,
Florian.

NSData *pdfData = [NSData dataWithContentsOfFile:pathToPDF];
PDFDocument *pdfDoc = [[PDFDocument alloc] initWithData:pdfData];

AddAnnotationsToPDF(pdfDoc, parsedAnnotations(xmlDoc));

// Saving the pdf
if(![pdfDoc writeToFile:pathToPDF])
{
NSLog(@Could not save pdf file);
return -1;
}

Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv - Tieltstraat 167 -  8740 Pittem -  Belgium 
___

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: NSControl objects on a custom view

2010-06-14 Thread Florian Soenens
Hi Jens,

thanks for the answer.
If you drag an NSTextfield on your custom view in Interface Builder, doesn't it 
become a subview automatically?

On 11 Jun 2010, at 19:03, Jens Alfke wrote:

 
 On Jun 11, 2010, at 7:04 AM, Florian Soenens wrote:
 
 When i put default buttons or a NSSearchfield or a NSProgressindicator on 
 top of my custom view, the subitems display a background.
 
 By “on top of”, do you mean they’re subviews of your custom view, or siblings 
 that are just positioned in the same place?
 
 If you make the controls subviews, they should draw correctly. Overlapping 
 sibling views didn’t use to work correctly back in the day; I think they’re 
 supposed to now, but you might be hitting an edge case. I think it’s 
 generally better to make the controls subviews if they’re logically “inside” 
 your view.
 
 —Jens



Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___

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: NSControl objects on a custom view

2010-06-14 Thread Florian Soenens
Then my NSTextField is a subview of my custom view but still displays with a 
background, that's the behavior i don't want.
Can this be fixed somehow?

On 14 Jun 2010, at 12:03, jonat...@mugginsoft.com wrote:

 
 On 14 Jun 2010, at 10:54, Florian Soenens wrote:
 
 Hi Jens,
 
 thanks for the answer.
 If you drag an NSTextfield on your custom view in Interface Builder, doesn't 
 it become a subview automatically?
 
 
 Yes it does.
 
 In Xcode shift + right mouse click on a view to see the view hierarchy.
 
 Regards
 
 Jonathan Mitchell
 
 Developer
 Mugginsoft LLP
 http://www.mugginsoft.com
 
 On 11 Jun 2010, at 19:03, Jens Alfke wrote:
 
 
 On Jun 11, 2010, at 7:04 AM, Florian Soenens wrote:
 
 When i put default buttons or a NSSearchfield or a NSProgressindicator on 
 top of my custom view, the subitems display a background.
 
 By “on top of”, do you mean they’re subviews of your custom view, or 
 siblings that are just positioned in the same place?
 
 If you make the controls subviews, they should draw correctly. Overlapping 
 sibling views didn’t use to work correctly back in the day; I think they’re 
 supposed to now, but you might be hitting an edge case. I think it’s 
 generally better to make the controls subviews if they’re logically 
 “inside” your view.
 
 —Jens
 
 
 
 Looking for Web-to-Print Solutions?
 Visit our website :   http://www.vit2print.com
 
 
 This e-mail, and any attachments thereto, is intended only for use by the 
 addressee(s) named herein and may contain legally privileged and/or 
 confidential information and/or information protected by intellectual 
 property rights.
 If you are not the intended recipient, please note that any review, 
 dissemination, disclosure, alteration, printing, copying or transmission of 
 this e-mail and/or any file transmitted with it, is strictly prohibited and 
 may be unlawful.
 If you have received this e-mail by mistake, please immediately notify the 
 sender and permanently delete the original as well as any copy of any e-mail 
 and any printout thereof.
 We may monitor e-mail to and from our network.
 
 NSS nv Tieltstraat 167 8740 Pittem Belgium 
 ___
 
 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/jonathan%40mugginsoft.com
 
 This email sent to jonat...@mugginsoft.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/florian.soenens%40nss.be
 
 This email sent to florian.soen...@nss.be



Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___

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: NSControl objects on a custom view

2010-06-14 Thread Florian Soenens
That's what i thought at first, but i seem to fill the whole [self bounds] with 
the gradient.
On a sidenote, if i put a custom NSSearchfield onto my custom gradient view, 
the behavior is more obvious then with a default NSSearchfield, am i 
overlooking something in the NSSearchFieldCell behavior also?

On 14 Jun 2010, at 13:47, jonat...@mugginsoft.com wrote:

 
 On 14 Jun 2010, at 12:28, Florian Soenens wrote:
 
 Then my NSTextField is a subview of my custom view but still displays with a 
 background, that's the behavior i don't want.
 Can this be fixed somehow?
 
 On 14 Jun 2010, at 12:03, jonat...@mugginsoft.com wrote:
 
 Do you want the gradient to show through the NSTextField?
 
 I can place an NSSearchField on a gradient background and the redraw is fine.
 In your gradient view make sure that you are dealing with the invalidated 
 rect of - drawRect: correctly.
 By default your receive the invalidated rect - which may be the view frame.
 
 When you click on the NSSearchField the superview will be requested to redraw 
 the background behind the NSSearchField.
 If your gradient view simply fills the NSRect it receives in  - drawRect: 
 this will have the effect of generating a smaller gradient behind the 
 NSSearchField.
 
 Regards
 
 Jonathan Mitchell
 
 Developer
 Mugginsoft LLP
 http://www.mugginsoft.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/florian.soenens%40nss.be
 
 This email sent to florian.soen...@nss.be



Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___

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


NSControl objects on a custom view

2010-06-11 Thread Florian Soenens
Hi list,
 
here's a question about using NSControl objects on a custom view.
I have a couple of custom NSView that draw a gradient or a background pattern 
etc...
When i put default buttons or a NSSearchfield or a NSProgressindicator on top 
of my custom view, the subitems display a background.
For example an nssearchfield draws square when clicking into it.
I can only fix this by making my view layer-backed but that's not what i want
 
Am i overlooking something simple?
 
Thanks in advance,
Florian.

Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___

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


NSSegmentedControl select multiple cells

2010-03-04 Thread Florian Soenens
Hi List,

i googled this but found nothing relevant.
I want a segmented control with 6 cells that instead of acting like radio 
buttons, they should act as checkboxes, that is, multiple cells should be 
selected.
I tried to set the mode to select any in IB but no no avail.
Also tried setting the mode programmatically, but that doesn't work either.
Every time i click a cell, the others get deselected.

I've seen examples of how to deselect all cells but not how to select multiple.

Anyone has any ideas?

Thanks in advance,
Florian.

Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___

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: NSSegmentedControl select multiple cells

2010-03-04 Thread Florian Soenens
No bindings, not even the enabled binding.
I was even wondering if it is uberhaupt possible to select multiple cells in a 
NSSegmentedControl?

On 04 Mar 2010, at 10:43, jonat...@mugginsoft.com wrote:

 
 On 4 Mar 2010, at 09:28, Florian Soenens wrote:
 
 Hi List,
 
 i googled this but found nothing relevant.
 I want a segmented control with 6 cells that instead of acting like radio 
 buttons, they should act as checkboxes, that is, multiple cells should be 
 selected.
 I tried to set the mode to select any in IB but no no avail.
 Also tried setting the mode programmatically, but that doesn't work either.
 Every time i click a cell, the others get deselected.
 
 I've seen examples of how to deselect all cells but not how to select 
 multiple.
 
 Anyone has any ideas?
 
 Are you using bindings?
 Whenever a control seems to be acting counter intuitively I always check my 
 bindings' options.
 
 Regards
 
 Jonathan Mitchell
 
 Developer
 http://www.mugginsoft.com
 



Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___

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: NSSegmentedControl select multiple cells

2010-03-04 Thread Florian Soenens
Hi Jonathan,

i just discovered the same thing, my control is Textured Rounded and doesn't 
work, Regular Rounded seems to work fine.
Should i file a bug?

On 04 Mar 2010, at 11:47, jonat...@mugginsoft.com wrote:

 A 10 sec 10.6 demo project - 1 window + 1 NSSegmentedControl - shows this is 
 possible.
 However, behaviour seems to vary depending on the style of the control.
 
 The textured rounded style seems to like to do its own thing.
 Other styles are more well behaved.
 
 Regards
 
 Jonathan Mitchell
 
 Developer
 http://www.mugginsoft.com
 
 
 
 
 
 
 On 4 Mar 2010, at 10:31, Florian Soenens wrote:
 
 No bindings, not even the enabled binding.
 I was even wondering if it is uberhaupt possible to select multiple cells in 
 a NSSegmentedControl?
 
 On 04 Mar 2010, at 10:43, jonat...@mugginsoft.com wrote:
 
 
 On 4 Mar 2010, at 09:28, Florian Soenens wrote:
 
 Hi List,
 
 i googled this but found nothing relevant.
 I want a segmented control with 6 cells that instead of acting like radio 
 buttons, they should act as checkboxes, that is, multiple cells should be 
 selected.
 I tried to set the mode to select any in IB but no no avail.
 Also tried setting the mode programmatically, but that doesn't work either.
 Every time i click a cell, the others get deselected.
 
 I've seen examples of how to deselect all cells but not how to select 
 multiple.
 
 Anyone has any ideas?
 
 Are you using bindings?
 Whenever a control seems to be acting counter intuitively I always check my 
 bindings' options.
 
 Regards
 
 Jonathan Mitchell
 
 Developer
 http://www.mugginsoft.com
 
 
 
 
 Looking for Web-to-Print Solutions?
 Visit our website :   http://www.vit2print.com
 
 
 This e-mail, and any attachments thereto, is intended only for use by the 
 addressee(s) named herein and may contain legally privileged and/or 
 confidential information and/or information protected by intellectual 
 property rights.
 If you are not the intended recipient, please note that any review, 
 dissemination, disclosure, alteration, printing, copying or transmission of 
 this e-mail and/or any file transmitted with it, is strictly prohibited and 
 may be unlawful.
 If you have received this e-mail by mistake, please immediately notify the 
 sender and permanently delete the original as well as any copy of any e-mail 
 and any printout thereof.
 We may monitor e-mail to and from our network.
 
 NSS nv Tieltstraat 167 8740 Pittem Belgium 
 
 ___
 
 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/florian.soenens%40nss.be
 
 This email sent to florian.soen...@nss.be



Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___

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


NSPredicateEditor Continuous updating failes

2010-01-21 Thread Florian Soenens

Hi LIst,

i set up an NSPredicateEditor and got it all working fine except that  
it only executes when i hit enter or tab out of the NSTextField.
Is there a way to let it execute everytime something changes in the  
textfield?


I tried checking the continuous button in IB but that is impossible,  
it always unchecks itself. I also tried setting continuous  
programatically but to no avail...


Anyone has any suggestions?

Kind regards,
Florian.


Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___


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: Animating an NSView in from Below.

2010-01-04 Thread Florian Soenens

Joshua,

you are only setting the frames of your views but you never add  
secondView as a subview of your window.


Florian.

On 04 Jan 2010, at 14:16, Joshua Garnham wrote:


I know there are tutorials
like Marcus Zarras which shows how to change from one view to another,
but I would like to animate in a view which isn't going to replace  
another

view. Here's what I have at the moment:http://drp.ly/9w86s (Test App).
The view seems to slide in but the view isn't actually displayed.  
What's wrong?


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/florian.soenens%40nss.be

This email sent to florian.soen...@nss.be




Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___


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


Invoking ImageKit effects panel

2009-11-27 Thread Florian Soenens

Hi list,

i googled this but found nothing relevant.
Is it possible to invoke or access the effects view of the  
[IKImageEditPanel sharedImageEditPanel]?


What i would like to do is add this effcets view to my own custom  
view, in other words i don't want it to be in its own HUD panel.

Is this possible without breaking to many rules?

Kind regards,

- Florian

Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___


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


Custom drawing in IKImageBrowserView fails

2009-11-25 Thread Florian Soenens
Hi list,

i'm trying to override an IKImageBrowserView to do some custom drawing but i'm 
stuck.
What i try to accomplish is that when the view contains zero items, some custom 
drawing happens like drawing an NSAttributedString that says Drop items 
here...
Problem is that my drawing code gets never called.

Here's the drawRect method of my IKImageBrowserView:

- (void)drawRect:(NSRect)rect
{
[super drawRect:rect];

NSUInteger numItems = [[self dataSource] 
numberOfItemsInImageBrowser:self];

if(numItems = 0)
{
NSLog(@No items in me); // This gets called, so i'm sure the 
above code works

NSRect bounds = [self bounds];
bounds.size.width = 200;
bounds.size.height = 200;
bounds.origin.x += 200;
bounds.origin.y += 200;

//[NSGraphicsContext saveGraphicsState];

[[NSColor yellowColor] set]; // Just for testing purposes
NSRectFill(bounds);

//[NSGraphicsContext restoreGraphicsState];
}
}

Uncommenting the NSGrahicsContext doesn't help either.

Anyone has any ideas or workarounds for this?
Thanks in advance,
Florian
___

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: Custom drawing in IKImageBrowserView fails

2009-11-25 Thread Florian Soenens

Hi Thomas,

thanks for the reply, i did try the first method you suggest with  
adding a layer but it didn't work either.
I also tought of the second method but how would i make sure that my  
IKImageBrowserView still receives drop event?


I ned to be compatible with 10.5 so method 3 is out of the question.

Thanks anyway!

Florian.

On 25 Nov 2009, at 14:44, Thomas Goossens wrote:


Hi Florian,

You can't do custom drawing this way (because the IKImageBrowserView  
renders into an openGL surface, so AppKit or CoreGraphics calls  
won't do anything).

So to do what you want you can either:
- make the view layer backed and add a sub-layer
- add an overlay transparent window on top of the image browser view
- add an overlay layer with setForegroundLayer: (that's the easiest  
solution but it is SnowLeopard only).


-- Thomas


On Nov 25, 2009, at 2:34 PM, Florian Soenens wrote:


Hi list,

i'm trying to override an IKImageBrowserView to do some custom  
drawing but i'm stuck.
What i try to accomplish is that when the view contains zero items,  
some custom drawing happens like drawing an NSAttributedString that  
says Drop items here...

Problem is that my drawing code gets never called.

Here's the drawRect method of my IKImageBrowserView:

- (void)drawRect:(NSRect)rect
{
[super drawRect:rect];

	NSUInteger numItems = [[self dataSource]  
numberOfItemsInImageBrowser:self];


if(numItems = 0)
{
		NSLog(@No items in me); // This gets called, so i'm sure the  
above code works


NSRect bounds = [self bounds];
bounds.size.width = 200;
bounds.size.height = 200;
bounds.origin.x += 200;
bounds.origin.y += 200;

//[NSGraphicsContext saveGraphicsState];

[[NSColor yellowColor] set]; // Just for testing purposes
NSRectFill(bounds);

//[NSGraphicsContext restoreGraphicsState];
}
}

Uncommenting the NSGrahicsContext doesn't help either.

Anyone has any ideas or workarounds for this?
Thanks in advance,
Florian
___

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/tgoossens%40mac.com

This email sent to tgooss...@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/florian.soenens%40nss.be

This email sent to florian.soen...@nss.be




Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___


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: Custom drawing in IKImageBrowserView fails

2009-11-25 Thread Florian Soenens
 Thanks to all for the help.

i went with Mike's solution of swapping view.
I wrapped the IKImageBrowserView into a Tabless NSTabview with in the second 
tab my dropview.

I will also file the bug report as Mike suggested.

Thanks!

On Wednesday, November 25, 2009, at 03:34PM, Mike Abdullah 
cocoa...@mikeabdullah.net wrote:

On 25 Nov 2009, at 14:06, Florian Soenens wrote:

 Hi Thomas,
 
 thanks for the reply, i did try the first method you suggest with adding a 
 layer but it didn't work either.
 I also tought of the second method but how would i make sure that my 
 IKImageBrowserView still receives drop event?

You should be able to set the overlay to be invisible to mouse events etc. 
quite easily.
 
 I ned to be compatible with 10.5 so method 3 is out of the question.
 
 Thanks anyway!
 
 Florian.
 
 On 25 Nov 2009, at 14:44, Thomas Goossens wrote:
 
 Hi Florian,
 
 You can't do custom drawing this way (because the IKImageBrowserView 
 renders into an openGL surface, so AppKit or CoreGraphics calls won't do 
 anything).
 So to do what you want you can either:
 - make the view layer backed and add a sub-layer
 - add an overlay transparent window on top of the image browser view
 - add an overlay layer with setForegroundLayer: (that's the easiest 
 solution but it is SnowLeopard only).
 
 -- Thomas
 
 
 On Nov 25, 2009, at 2:34 PM, Florian Soenens wrote:
 
 Hi list,
 
 i'm trying to override an IKImageBrowserView to do some custom drawing but 
 i'm stuck.
 What i try to accomplish is that when the view contains zero items, some 
 custom drawing happens like drawing an NSAttributedString that says Drop 
 items here...
 Problem is that my drawing code gets never called.
 
 Here's the drawRect method of my IKImageBrowserView:
 
 - (void)drawRect:(NSRect)rect
 {
[super drawRect:rect];

NSUInteger numItems = [[self dataSource] 
 numberOfItemsInImageBrowser:self];

if(numItems = 0)
{
NSLog(@No items in me); // This gets called, so i'm sure the 
 above code works

NSRect bounds = [self bounds];
bounds.size.width = 200;
bounds.size.height = 200;
bounds.origin.x += 200;
bounds.origin.y += 200;

//[NSGraphicsContext saveGraphicsState];

[[NSColor yellowColor] set]; // Just for testing purposes
NSRectFill(bounds);

//[NSGraphicsContext restoreGraphicsState];
}
 }
 
 Uncommenting the NSGrahicsContext doesn't help either.
 
 Anyone has any ideas or workarounds for this?
 Thanks in advance,
 Florian
 ___
 
 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/tgoossens%40mac.com
 
 This email sent to tgooss...@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/florian.soenens%40nss.be
 
 This email sent to florian.soen...@nss.be
 
 
 
 Looking for Web-to-Print Solutions?
 Visit our website :   http://www.vit2print.com
 
 
 This e-mail, and any attachments thereto, is intended only for use by the 
 addressee(s) named herein and may contain legally privileged and/or 
 confidential information and/or information protected by intellectual 
 property rights.
 If you are not the intended recipient, please note that any review, 
 dissemination, disclosure, alteration, printing, copying or transmission of 
 this e-mail and/or any file transmitted with it, is strictly prohibited and 
 may be unlawful.
 If you have received this e-mail by mistake, please immediately notify the 
 sender and permanently delete the original as well as any copy of any e-mail 
 and any printout thereof.
 We may monitor e-mail to and from our network.
 
 NSS nv Tieltstraat 167 8740 Pittem 
 Belgium___
 
 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/cocoadev%40mikeabdullah.net
 
 This email sent to cocoa...@mikeabdullah.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

Re: How to create a control just as RGB Sphere and Alpha bar

2009-09-25 Thread Florian Soenens

http://www.google.com/search?client=safarirls=en-usq=cocoa+get+pixel+rgb+valueie=UTF-8oe=UTF-8

Florian.

On 25 Sep 2009, at 09:12, Symadept wrote:


Hi Graham,
I tried to display the RGB spectrum as an image in the view. How can  
I pick

particular pixel color from that image. Does it make sense?

-Mustafa

On Fri, Sep 25, 2009 at 2:29 PM, Graham Cox graham@bigpond.com  
wrote:



tsk, tsk - lazy, lazy.

http://mattgemmell.com/2008/12/08/what-have-you-tried

http://catb.org/~esr/faqs/smart-questions.html


C'mon, get real. No-one's going to write your code for you. If you  
can't
find a free class somewhere, subclass NSView yourself. A location  
-- RGB

mapping is pretty easy.

--Graham






On 25/09/2009, at 4:20 PM, Symadept wrote:

Hi Graham,


Yes. But do you have any other ways to handle this.

I want something like this



I could be able to pick the color from the spectrum band and could  
change
the Alpha (This I can manage to some extent, Immediately I need to  
handle

the picking colour from the spectrum.)

Regards
Mustafa





___

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/florian.soenens%40nss.be

This email sent to florian.soen...@nss.be




Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___


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


NSOutlineView Source List not looking like expected

2009-09-02 Thread Florian Soenens

Hi list,

in our app i implemented an NSOutlineView set to SourceList in IB.
I implemented the datasource method to set the group items etc but my  
group items (the ones in uppercase like mail.app, iTunes etc...) don't  
look exactly like the ones seen in the other Apple apps.
What i mean is, the font looks bigger, a little darker and the hilight  
around (or under) the text is not as bright like the Apple apps.


Is anyone experiencing the same? Does Apple and other developers  
implement something custom?
I have set the fontsize of my cell to 11 in IB and the controlSize to  
NSSmallControlSize but to no avail.


Thanks in advance for the help.
Florian.


Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___


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: NSOutlineView Source List not looking like expected

2009-09-02 Thread Florian Soenens

Hi Corbin,

i actually followed the example and if you look closely, it doesn't  
exactly match mail.app SourceList either.
That's why i thought some custom implementation was going on in the  
other Apple apps.


If i find the time i will post some screenshots to show the difference.

Thanks,
Florian.

On 02 Sep 2009, at 17:34, Corbin Dunn wrote:


You should see the source list example on the dev site.

are you implementing the isGroupRow method and returning YES? You  
need to do that for the group/title rows.


corbin

On Sep 2, 2009, at 2:41 AM, Florian Soenens wrote:


Hi list,

in our app i implemented an NSOutlineView set to SourceList in IB.
I implemented the datasource method to set the group items etc but  
my group items (the ones in uppercase like mail.app, iTunes etc...)  
don't look exactly like the ones seen in the other Apple apps.
What i mean is, the font looks bigger, a little darker and the  
hilight around (or under) the text is not as bright like the Apple  
apps.


Is anyone experiencing the same? Does Apple and other developers  
implement something custom?
I have set the fontsize of my cell to 11 in IB and the controlSize  
to NSSmallControlSize but to no avail.


Thanks in advance for the help.
Florian.


Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use  
by the addressee(s) named herein and may contain legally privileged  
and/or confidential information and/or information protected by  
intellectual property rights.
If you are not the intended recipient, please note that any review,  
dissemination, disclosure, alteration, printing, copying or  
transmission of this e-mail and/or any file transmitted with it, is  
strictly prohibited and may be unlawful.
If you have received this e-mail by mistake, please immediately  
notify the sender and permanently delete the original as well as  
any copy of any e-mail and any printout




Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___


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: TableView displaying a zillion empty rows

2009-07-08 Thread Florian Soenens

Hi Brian,

you seem to only check for gameScoresTableView and  
playerManagementTableView.

Are your Controller outlets actually connected to these 2 NSTableViews?

Regards,
Florian.

On 06 Jul 2009, at 20:14, Brian Hughes wrote:



Hi,
I have two tableViews in my application.  One works perfectly the  
other doesn't.  For both I use a simple data source.
The tableView uses numberOfRowsInTableView: (NSTableView  
*)aTableView to get the number of rows by doing a count of the  
objects in my array.  This number happens to be 22.  When I run the  
program I get a zillion empty rows after my 22 rows of data.   
However if I use the constant 22 as the return value the tableView  
displays 22 rows of my data.  Any idea about what I am doing wrong?

Here is my code:
   -(int) numberOfRowsInTableView: (NSTableView *)aTableView
{
  int returnValue;

  if (aTableView == gameScoresTableView) //This works as expected
  {
if (currentIndex_= 0)
{
			LNPlayer *currentPlayer = [playersArray objectAtIndex:  
currentIndex_];
			NSMutableArray *tempGameRecordsArray = [NSMutableArray  
arrayWithArray: [currentPlayer gameRecordsArray]];

returnValue = [tempGameRecordsArray count];
}
else
{
NSBeep ();
NSLog (@ERROR in LNAppController -- 
numberOfRowsInTableView:);
return -1;
}

  }
	  else if (aTableView == playerManagementTableView) //This is the  
one that doesn't work

  {
returnValue = [playersArray count];  //[playersArray count] = 22
NSLog (@playersArray count = %d, returnValue);  //returnValue 
= 22
  }

	 return returnValue;  //However if I change this to: return  
returnValue = 22 it works fine!

   }



   -(id) tableView: (NSTableView *) aTableView  
objectValueForTableColumn: (NSTableColumn *) aTableColumn row: (int)  
rowIndex

   {
  id returnValue = nil;

  if (aTableView == gameScoresTableView)
  {
		LNPlayer *currentPlayer = [playersArray objectAtIndex:  
currentIndex_];
		NSMutableArray *tempGameRecordsArray = [NSMutableArray  
arrayWithArray: [currentPlayer gameRecordsArray]];


id theRecord, theValue;

theRecord = [tempGameRecordsArray objectAtIndex:rowIndex];
theValue = [theRecord objectForKey:[aTableColumn identifier]];

returnValue = theValue;
  }
  else if (aTableView == playerManagementTableView)
  {
//Which Player?
LNPlayer *player = [playersArray objectAtIndex: rowIndex];
//What is the value of the attribute named identifier?
//returnValue = [player valueForKey: [aTableColumn identifier]];
if ([[aTableColumn identifier] isEqualTo: @firstName_] == YES)
returnValue = [player firstName_];
else if ([[aTableColumn identifier] isEqualTo: @lastName_])
returnValue = [player lastName_];
else if ([[aTableColumn identifier] isEqualTo: @playerName_])
returnValue = [player playerName_];
		else if ([[aTableColumn identifier] isEqualTo:  
@trebleClefGameLevel_])
			returnValue = [NSNumber numberWithInt: [player  
trebleClefGameLevel_]];
		else if ([[aTableColumn identifier] isEqualTo:  
@altoClefGameLevel_])
			returnValue = [NSNumber numberWithInt: [player  
altoClefGameLevel_]];
		else if ([[aTableColumn identifier] isEqualTo:  
@tenorClefGameLevel_])
			returnValue = [NSNumber numberWithInt: [player  
tenorClefGameLevel_]];
		else if ([[aTableColumn identifier] isEqualTo:  
@bassClefGameLevel_])
			returnValue = [NSNumber numberWithInt: [player  
bassClefGameLevel_]];
		else if ([[aTableColumn identifier] isEqualTo:  
@symbolTextConcentrationGameLevel_])
			returnValue = [NSNumber numberWithInt: [player  
symbolTextConcentrationGameLevel_]];

  }

 return returnValue;
   }
Any help would be much appreciated.
Thanks,
Brian

Than
_
Windows Live™ SkyDrive™: Get 25 GB of free online storage.
http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009___

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/florian.soenens%40nss.be

This email sent to florian.soen...@nss.be




Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is 

Re: Filling View With Pattern Image

2009-06-19 Thread Florian Soenens

You will have to do it programmatically but it's pretty easy stuff.
This should do the trick nicely:

-(void)drawBackgroundPattern
{
	// Suppose backgroundPatternImage is a valid reference to your  
pattern image


NSRect rect = [self frame];

float width = rect.size.width;
float height = rect.size.height;

float bgWidth = [backgroundPatternImage size].width;
float bgHeight = [backgroundPatternImage size].height;
float xPos = 0;
float yPos = height - bgHeight;

while(yPos = 0 - bgHeight)
{
while (xPos  width)
{
NSRect drawRect = NSMakeRect(xPos, yPos, bgWidth, 
bgHeight);
			[backgroundPatternImage drawInRect:drawRect fromRect:NSZeroRect  
operation:NSCompositeSourceOver fraction:1.0];

xPos += bgWidth;
}
xPos = 0;
yPos -= bgHeight;
}
}

-(void)drawRect:(NSRect)aRect
{
[self drawBackgroundPattern];
}

hth,
Florian.

On 19 Jun 2009, at 10:14, Chunk 1978 wrote:


i have this image (image.png) that i would like to tile throughout
the view...

i've read the Quartz 2D programming guide... ok, ok, i breezed thru
it, i admit... but i couldn't seem to find an easy way of repeating an
image through out a view without actually drawing the image
programatically...
___

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/florian.soenens%40nss.be

This email sent to florian.soen...@nss.be




Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___


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: Photoshop plugin with Cocoa UI problems

2009-06-10 Thread Florian Soenens

Hi Frederik,

Have you tried wiring your window to an IBOutlet of your Controller  
and displaying it with [window makeKeyAndOrderFront:nil]; ?


This works for me anyway.

HTH,
Florian.

On 10 Jun 2009, at 16:07, Frederik Slijkerman wrote:


Hi all,

I'm trying to make a Photoshop plugin with a Cocoa user interface,  
but I'm running into a persistent problem: after closing the plugin  
window, Photoshop crashes 90% of the time with the following call  
stack:


#0  0xa04590d8 in _XHNDL_trapback_instruction
#1  0xbf800fac in ??
#2  0x917ea9a2 in __CFRunLoopDoObservers
#3  0x917ebcfc in CFRunLoopRunSpecific
#4  0x917eccd8 in CFRunLoopRunInMode
#5  0x969f42c0 in RunCurrentEventLoopInMode
#6  0x96aa7904 in GetNextEventMatchingMask
#7  0x96aa7766 in WNEInternal
#8  0x96aa76c5 in WaitNextEvent

I've tried every suggestion I could find. The main plugin is a  
Carbon bundle that locates the Cocoa bundle that actually contains  
the core plugin as suggested here:

http://furbo.org/2008/07/08/plug-ins-the-cocoa-way/

The Cocoa bundle exports a plugin entry point as a C function. The  
Carbon bundle calls this from its own entry point using  
CFBundleCreate / CFBundleGetFunctionPointerForName, but it never  
releases the Cocoa bundle since apparently Cocoa bundles should not  
be unloaded. The whole idea behind this, as far as I can see, is  
that Photoshop unloads the Carbon bundle, but does not unload the  
core Cocoa bundle.


Next, the Cocoa bundle calls NSApplicationLoad, displays an empty  
window using [NSApp runModalForWindow], then closes the window and  
returns. At this point, I get the aforementioned crash.


What am I doing wrong? Any pointers would be highly appreciated --  
I've been staring at this for about three days now...


Best regards,
Frederik Slijkerman
___

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/florian.soenens%40nss.be

This email sent to florian.soen...@nss.be




Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___


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: Creating UI for as of Get Info Panel

2009-03-23 Thread Florian Soenens

This example should get you somewhere...

http://developer.apple.com/SampleCode/Reducer/listing6.html

Especially, take a look at the CollapsibleBox class.

Regards,
Florian.

On 23 Mar 2009, at 08:54, Ankur Singhal wrote:


Hi Kyle,
Sorry for not clearing my doubt completely.
I have created an icon view in which I am showing the files and  
folders of the selected item by the user. And now I want to create a  
panel as of finders but I am not able to identify the controls of it  
like inside the disclosure triangle it is showing a table view for  
sharing and permissions option. So can you help me in sorting out  
the problem that how can I add the table inside the disclosure  
triangle.


Thanks and Regards,
Ankur Singhal

-Original Message-
From: Kyle Sluder [mailto:kyle.slu...@gmail.com]
Sent: Monday, March 23, 2009 11:50 Morning
To: Ankur Singhal
Cc: cocoa-dev@lists.apple.com
Subject: Re: Creating UI for as of Get Info Panel

We have no idea what file you want to Get Info on, or whether you want
to make your own Get Info panel or use the Finder's.  For all I know
this is a Get Info window in a custom application that has no relation
to files on disk besides bearing the same name.

http://www.whathaveyoutried.com

We will not write your application for you via e-mail.

--Kyle Sluder

DISCLAIMER
==
This e-mail may contain privileged and confidential information  
which is the property of Persistent Systems Ltd. It is intended only  
for the use of the individual or entity to which it is addressed. If  
you are not the intended recipient, you are not authorized to read,  
retain, copy, print, distribute or use this message. If you have  
received this communication in error, please notify the sender and  
delete all copies of this message. Persistent Systems Ltd. does not  
accept any liability for virus infected mails.

___

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/florian.soenens%40nss.be

This email sent to florian.soen...@nss.be




Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___


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: Does CGImageSourceCreateThumbnailAtIndex max out at 5000 pixels?

2009-03-01 Thread Florian Soenens
Actually we are just looking for the fastest way of creating a 72 dpi  
image (thumbnail) of our original 400 dpi image.
It seemed that CGImageSourceCreateThumbnailAtIndex was the fastest way  
to do this.


I am not expecting an image larger than the original but the docs say  
that it could be as large as the image itself if you don't pass  
kCGImageSourceThumbnailMaxPixelSize as a key, which is not the case.


What i noticed now is if i do pass kCGImageSourceThumbnailMaxPixelSize  
and give it a value larger than the original image, my thumbnail is  
the size of the image itself, if you don't pass it, it maxes out at  
5000 pixels.


Perhaps there are other solutions to our goal but i think they will be  
slower.


Kind regards,
Florian.

On 27 Feb 2009, at 20:27, David Duncan wrote:


On Feb 27, 2009, at 1:12 AM, Florian Soenens wrote:

i'm trying to use this function in one of our tools and we noticed  
that it maxes out at 5000 pixels.


The documentation says that if you do not specify  
kCGImageSourceThumbnailMaxPixelSize the width and height of a  
thumbnail is not limited and thumbnails may be as big as the image  
itself.


In our case the outcoming image is always 5000 pixels wide, even  
though the original width was over 5000 pixels.

Anyone has any clue on this, i googled but found nothing relevant?



I would say that this level of behavior is undefined, if your  
looking for a thumbnail, then your implying to the API that you are  
expecting an image no larger than the original - which is what you  
are getting. Could you better explain what you are trying to do?

--
David Duncan
Apple DTS Animation and Printing





Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___


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


Does CGImageSourceCreateThumbnailAtIndex max out at 5000 pixels?

2009-02-27 Thread Florian Soenens

Hi list,

i'm trying to use this function in one of our tools and we noticed  
that it maxes out at 5000 pixels.
We are feeding it a 400 dpi jpg of 9355 by 13243 (A1) with the  
following props:


NSDictionary* thumbOpts = [NSDictionary dictionaryWithObjectsAndKeys:
(id)kCFBooleanFalse, 
(id)kCGImageSourceCreateThumbnailWithTransform,
(id)kCFBooleanTrue, 
(id)kCGImageSourceCreateThumbnailFromImageAlways,
nil];

The documentation says that if you do not specify  
kCGImageSourceThumbnailMaxPixelSize the width and height of a  
thumbnail is not limited and thumbnails may be as big as the image  
itself.


In our case the outcoming image is always 5000 pixels wide, even  
though the original width was over 5000 pixels.

Anyone has any clue on this, i googled but found nothing relevant?

Thanks in advance,
Florian.

Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___


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


Location of the standard Apple icons in IB

2009-01-26 Thread Florian Soenens

Hi list,

i'm working on a 10.4+ app and i use some icon templates like  
NSPreferencesGeneral, NSUser, etc...
The problem is that something like [toolbarItem setImage:[NSImage  
imageNamed:@NSPreferencesGeneral]] only works on 10.5+


My question is, does anyone know the location these icons on then  
system so i can take them and build them with my project instead of  
relying on the runtime based approach.


I looked in System - CoreServices but there not all there.

Thanks in advance,
Florian.

Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___


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: Location of the standard Apple icons in IB

2009-01-26 Thread Florian Soenens

You're right!

Don't know why i didn't think about that myself... ;-)

Txs.

On 26 Jan 2009, at 11:37, Jean-Daniel Dupas wrote:



Le 26 janv. 09 à 11:29, Florian Soenens a écrit :


Hi list,

i'm working on a 10.4+ app and i use some icon templates like  
NSPreferencesGeneral, NSUser, etc...
The problem is that something like [toolbarItem setImage:[NSImage  
imageNamed:@NSPreferencesGeneral]] only works on 10.5+


My question is, does anyone know the location these icons on then  
system so i can take them and build them with my project instead of  
relying on the runtime based approach.


I looked in System - CoreServices but there not all there.

Thanks in advance,
Florian.

Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com



What about retreiving them on 10.5 using NSImage functions ?

[[[NSImage imageNamed:@NSPreferencesGeneral]  
TIFFRepresentationUsingCompression:NSTIFFCompressionLZW]  
writeToFile:@NSPreferencesGeneral.tiff atomically:NO];







Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___


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


IKImageBrowserView with NSArrayController bindings

2008-11-13 Thread Florian Soenens

Hi list,

i have an IKImageBrwoserView bound to an NSArrayController of objects.
The objects all conform to the IKImagebrowserItem protocol.

When running my application, all the images display correctly in the  
browser view, this al works fine, BUT:


In the IKImageBrowserDelegate, i implemented  
imageBrowserSelectionDidChange like this for testing purposes:

(I also have an IBOutlet to my NSArrayController)

- (void) imageBrowserSelectionDidChange:(IKImageBrowserView *) aBrowser
{
NSLog([[arrayController selectedIndex] description]);
}

The problem is that the NSArrayController always logs the same index,  
no mather what item i select in de BrowserView.

I assumed that it would always reflect the currently selected index.

I can fix it by doing this but i am not sure if this is the right way  
to go, or is it just a bug in IKImageBrowserView?


- (void) imageBrowserSelectionDidChange:(IKImageBrowserView *) aBrowser
{
[arrayController setSelectionIndexes:[aBrower selectionIndexes]];
NSLog([[arrayController selectedIndex] description]);
}

Help would be much appreciated.
Thanks,
Florian.




Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___


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

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

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

This email sent to [EMAIL PROTECTED]


Re: IKImageBrowserView with NSArrayController bindings

2008-11-13 Thread Florian Soenens
One more thing on this, if i bind an nstableview to my  
NSArrayController (to just display the path to the image object) the  
arrayController does reflect the changes, like so:


- (void)tableViewSelectionDidChange:(NSNotification *)aNotification
{
NSLog([[arrayController selectionIndexes] description]);
}

The log displays different indexes like it should, so i assume that  
IKImageBrowserView could have a bug in it's bindings.


PS: is it enough to just bind the IKImageBrowserView to Controller Key  
@arrangedObject without a Model Key Path?


On 13 Nov 2008, at 10:29, Florian Soenens wrote:


Hi list,

i have an IKImageBrwoserView bound to an NSArrayController of objects.
The objects all conform to the IKImagebrowserItem protocol.

When running my application, all the images display correctly in the  
browser view, this al works fine, BUT:


In the IKImageBrowserDelegate, i implemented  
imageBrowserSelectionDidChange like this for testing purposes:

(I also have an IBOutlet to my NSArrayController)

- (void) imageBrowserSelectionDidChange:(IKImageBrowserView *)  
aBrowser

{
NSLog([[arrayController selectedIndex] description]);
}

The problem is that the NSArrayController always logs the same  
index, no mather what item i select in de BrowserView.

I assumed that it would always reflect the currently selected index.

I can fix it by doing this but i am not sure if this is the right  
way to go, or is it just a bug in IKImageBrowserView?


- (void) imageBrowserSelectionDidChange:(IKImageBrowserView *)  
aBrowser

{
[arrayController setSelectionIndexes:[aBrower selectionIndexes]];
NSLog([[arrayController selectedIndex] description]);
}

Help would be much appreciated.
Thanks,
Florian.




Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use  
by the addressee(s) named herein and may contain legally privileged  
and/or confidential information and/or information protected by  
intellectual property rights.
If you are not the intended recipient, please note that any review,  
dissemination, disclosure, alteration, printing, copying or  
transmission of this e-mail and/or any file transmitted with it, is  
strictly prohibited and may be unlawful.
If you have received this e-mail by mistake, please immediately  
notify the sender and permanently delete the original as well as any  
copy of any e-mail and any printout thereof.

We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem  
Belgium___


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/florian.soenens%40nss.be

This email sent to [EMAIL PROTECTED]




Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___


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

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

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

This email sent to [EMAIL PROTECTED]


Re: IKImageBrowserView with NSArrayController bindings

2008-11-13 Thread Florian Soenens

I'm sorry, i was typing this out of my head in mail. Here's what i did:

- (void) imageBrowserSelectionDidChange:(IKImageBrowserView *) aBrowser
{
[arrayController setSelectionIndexes:[aBrower selectionIndexes]];
NSLog([[arrayController selectionIndexes] description]);
}

Any ideas?



On 13 Nov 2008, at 11:10, Quincey Morris wrote:


On Nov 13, 2008, at 01:29, Florian Soenens wrote:

- (void) imageBrowserSelectionDidChange:(IKImageBrowserView *)  
aBrowser

{
NSLog([[arrayController selectedIndex] description]);
}

The problem is that the NSArrayController always logs the same  
index, no mather what item i select in de BrowserView.

I assumed that it would always reflect the currently selected index.


NSArrayController doesn't respond to 'selectedIndex' -- I think you  
mean 'selectionIndex'.


You should have got a compilation error for this. IAC, the index is  
an integer, not an object, so you couldn't have usefully sent a  
'description' message to it either.



___

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/florian.soenens%40nss.be

This email sent to [EMAIL PROTECTED]




Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___


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

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

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

This email sent to [EMAIL PROTECTED]


Re: NSTimer does NOT repeat, why ?

2008-09-18 Thread Florian Soenens

Stupid me!
Thanks for the responses, works fine now...

On 18 Sep 2008, at 11:33, Thomas Davie wrote:



On 18 Sep 2008, at 11:18, Florian Soenens wrote:


Hi list,

anyone knows why in this simple piece of code, the method testTimer  
is only called once and not every 2 seconds?


Thanks in advance;
Florian.

#import Controller.h

@implementation Controller

-(void) awakeFromNib
{
NSLog(@Creating NSTimer);
	timer = [[NSTimer timerWithTimeInterval:2.0 target:self  
selector:@selector(testTimer) userInfo:nil repeats:YES] retain];

[timer fire];
}

-(void) testTimer
{
NSLog(@Test);
}


The timer only fires once, because you are only telling it to fire  
once.  You should instead be scheduling it.


Bob




Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___


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

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

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

This email sent to [EMAIL PROTECTED]


Utility Window needs to hide

2008-09-11 Thread Florian Soenens

Hi list,

i created a plugin for another application (Indesign CS3)
I was able to implement a Cocoa interface following the guidelines in 
http://developer.apple.com/documentation/Cocoa/Conceptual/CarbonCocoaDoc/CarbonCocoaDoc.html

Everything works fine except that my utility window stays visible in  
front of all other applications and not only in front of Indesign.
Is it possible to only set the visibility of a utility window for a  
particular application?


Any help is much appreciated!
Thanks in advance,

Florian.

Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___


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

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

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

This email sent to [EMAIL PROTECTED]


Re: hooking into another app

2008-04-14 Thread Florian Soenens

Maybe if the log is written to a file, you can read in that file.
But that won't be real-time logging of course.

Regards,
Flor.

On 14 Apr 2008, at 16:49, Keary Suska wrote:


on 4/14/08 8:26 AM, [EMAIL PROTECTED] purportedly said:

Re-read my message. If it was unclear, what I want to do is be able  
to
log (record) text being written to a chat window from another app.  
NOT
log key strokes. For example, how could I progmatically record an   
AIM

chat conversation from my app?


You can't, at least not without the application's cooperation, such  
as being
a plugin, using OSA, etc. With a *user's* (or administrator's)  
cooperation,
you could have an app that acts as a proxy. Another option would  
involve a

kernel extension, and that may be more work than it is worth.

Best,

Keary Suska
Esoteritech, Inc.
Demystifying technology for your home or business


___

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/florian.soenens%40nss.be

This email sent to [EMAIL PROTECTED]




Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___


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

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

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

This email sent to [EMAIL PROTECTED]


Help with PDFPage to NSImage

2008-02-27 Thread Florian Soenens

Hi list,

I need to load a (multipage) pdf and convert every page to jpg and  
save to disk.

i don't understand why this simple code is not working:

PDFDocument *pdfDocument = [[PDFDocument alloc] initWithURL:inputurl];
PDFPage *currentPage = [pdfDocument pageAtIndex:i];
NSImage *image = [[NSImage alloc] initWithData:[currentPage  
dataRepresentation]];

NSData *tiffRep = [image TIFFRepresentation];
NSBitmapImageRep *rep = [[NSBitmapImageRep alloc] initWithData:tiffRep];
NSData *bitmapData = [rep representationUsingType:NSJPEGFileType  
properties:NULL];

[bitmapData writeToURL:outurl atomically:YES];


Thanks in advance,
Florian.







Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___


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

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

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

This email sent to [EMAIL PROTECTED]


Re: Help with PDFPage to NSImage

2008-02-27 Thread Florian Soenens

Hi Antonio,

my pdf document gets created.
The index is also valid.

The source pdf does display correctly in Preview and i'm using Leopard.
Here's my output:

2008-02-27 13:42:14.710 ThumbNailFixedWidthLine[26446:10b]  
_NXCreateWindow: error setting window property (1002)
2008-02-27 13:42:14.910 ThumbNailFixedWidthLine[26446:10b]  
_NXTermWindow: error releasing window (1002)
2008-02-27 13:42:14.973 ThumbNailFixedWidthLine[26446:10b] ***  
Terminating app due to uncaught exception  
'NSInternalInconsistencyException', reason: 'Error (1002) creating  
CGSWindow'

2008-02-27 13:42:14.974 ThumbNailFixedWidthLine[26446:10b] Stack: (
2489950827,
2494017691,
2489950283,
2489950346,
2524632528,
2524631756,
2524630962,
2524630360,
2524627265,
2524626936,
2524626545,
11120,
8922,
8705
)
Trace/BPT trap

Can you help me out?
Txs,
Florian.

On 27 Feb 2008, at 11:33, Antonio Nunes wrote:


On Feb 27, 2008, at 10:32 AM, Florian Soenens wrote:


i don't understand why this simple code is not working:

PDFDocument *pdfDocument = [[PDFDocument alloc]  
initWithURL:inputurl];

PDFPage *currentPage = [pdfDocument pageAtIndex:i];
NSImage *image = [[NSImage alloc] initWithData:[currentPage  
dataRepresentation]];

NSData *tiffRep = [image TIFFRepresentation];
NSBitmapImageRep *rep = [[NSBitmapImageRep alloc]  
initWithData:tiffRep];
NSData *bitmapData = [rep representationUsingType:NSJPEGFileType  
properties:NULL];

[bitmapData writeToURL:outurl atomically:YES];


You do not explain which part is not working. The code that should  
produce the bitmapData looks allright, so my guess is that either  
the document is not loaded in the first line because of a problem  
with the input URL, or i is an invalid index in line 2, or the  
output URL in the last line is invalid.


Failing all that there are some other more esoteric reasons why e.g  
your output may simply be empty. That can happen when PDFKit has  
trouble with the source document. Are you running this on Tiger or  
on Leopard? Does the source PDF display correctly in Preview?


-António


Energy is like a muscle,
it grows stronger through being used.







Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___


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

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

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

This email sent to [EMAIL PROTECTED]


Re: Help with PDFPage to NSImage

2008-02-27 Thread Florian Soenens
Sorry to bother again, i mixed two pieces of code, here's my error  
output:


2008-02-27 14:35:04.055 ThumbNailFixedWidthLine[28467:10b] ***  
Terminating app due to uncaught exception  
'NSInternalInconsistencyException', reason: 'Error (1002) creating  
CGSWindow'

2008-02-27 14:35:04.056 ThumbNailFixedWidthLine[28467:10b] Stack: (
2489950827,
2494017691,
2489950283,
2489950346,
2524632528,
2524631756,
2524630962,
2524630360,
2524627265,
2524640151,
2524638949,
2524638809,
2525323748,
2525674269,
2525673692,
11194,
9054,
8837
)
Trace/BPT trap

I'm desperate, because everyting seems fine in my code.

On 27 Feb 2008, at 14:06, Antonio Nunes wrote:


On Feb 27, 2008, at 1:45 PM, Florian Soenens wrote:

The source pdf does display correctly in Preview and i'm using  
Leopard.

Here's my output:

2008-02-27 13:42:14.710 ThumbNailFixedWidthLine[26446:10b]  
_NXCreateWindow: error setting window property (1002)
2008-02-27 13:42:14.910 ThumbNailFixedWidthLine[26446:10b]  
_NXTermWindow: error releasing window (1002)
2008-02-27 13:42:14.973 ThumbNailFixedWidthLine[26446:10b] ***  
Terminating app due to uncaught exception  
'NSInternalInconsistencyException', reason: 'Error (1002) creating  
CGSWindow'


Looks to me like the error is not with the PDF creation code. I  
don't see what the above has to do with what you showed us. If the  
error were in the PDF creation code you would either get an error in  
one of it's lines, or the produced PDF would be empty/invalid.


-António


Today you are You, that is truer than true.
There is no one alive who is Youer than You.
Today I am Me, and I am freer than free.
There is no one alive who is Me-er than Me.
I am the BEST I can possibly be.

--Dr. Seuss







Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___


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

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

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

This email sent to [EMAIL PROTECTED]


Re: Help with PDFPage to NSImage

2008-02-27 Thread Florian Soenens
After googling my error output i discovered a tread about this issue  
and this is how it get's solved:


I need to add this line in the beginning of my main() function:
[NSApplication sharedApplication];

Why is this needed as we are talking about a command line utility??
On 27 Feb 2008, at 14:37, Florian Soenens wrote:

Sorry to bother again, i mixed two pieces of code, here's my error  
output:


2008-02-27 14:35:04.055 ThumbNailFixedWidthLine[28467:10b] ***  
Terminating app due to uncaught exception  
'NSInternalInconsistencyException', reason: 'Error (1002) creating  
CGSWindow'

2008-02-27 14:35:04.056 ThumbNailFixedWidthLine[28467:10b] Stack: (
   2489950827,
   2494017691,
   2489950283,
   2489950346,
   2524632528,
   2524631756,
   2524630962,
   2524630360,
   2524627265,
   2524640151,
   2524638949,
   2524638809,
   2525323748,
   2525674269,
   2525673692,
   11194,
   9054,
   8837
)
Trace/BPT trap

I'm desperate, because everyting seems fine in my code.

On 27 Feb 2008, at 14:06, Antonio Nunes wrote:


On Feb 27, 2008, at 1:45 PM, Florian Soenens wrote:

The source pdf does display correctly in Preview and i'm using  
Leopard.

Here's my output:

2008-02-27 13:42:14.710 ThumbNailFixedWidthLine[26446:10b]  
_NXCreateWindow: error setting window property (1002)
2008-02-27 13:42:14.910 ThumbNailFixedWidthLine[26446:10b]  
_NXTermWindow: error releasing window (1002)
2008-02-27 13:42:14.973 ThumbNailFixedWidthLine[26446:10b] ***  
Terminating app due to uncaught exception  
'NSInternalInconsistencyException', reason: 'Error (1002) creating  
CGSWindow'


Looks to me like the error is not with the PDF creation code. I  
don't see what the above has to do with what you showed us. If the  
error were in the PDF creation code you would either get an error  
in one of it's lines, or the produced PDF would be empty/invalid.


-António


Today you are You, that is truer than true.
There is no one alive who is Youer than You.
Today I am Me, and I am freer than free.
There is no one alive who is Me-er than Me.
I am the BEST I can possibly be.

--Dr. Seuss







Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use  
by the addressee(s) named herein and may contain legally privileged  
and/or confidential information and/or information protected by  
intellectual property rights.
If you are not the intended recipient, please note that any review,  
dissemination, disclosure, alteration, printing, copying or  
transmission of this e-mail and/or any file transmitted with it, is  
strictly prohibited and may be unlawful.
If you have received this e-mail by mistake, please immediately  
notify the sender and permanently delete the original as well as any  
copy of any e-mail and any printout thereof.

We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem  
Belgium___


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/florian.soenens%40nss.be

This email sent to [EMAIL PROTECTED]




Looking for Web-to-Print Solutions?
Visit our website :   http://www.vit2print.com


This e-mail, and any attachments thereto, is intended only for use by the 
addressee(s) named herein and may contain legally privileged and/or 
confidential information and/or information protected by intellectual property 
rights.
If you are not the intended recipient, please note that any review, 
dissemination, disclosure, alteration, printing, copying or transmission of 
this e-mail and/or any file transmitted with it, is strictly prohibited and may 
be unlawful.
If you have received this e-mail by mistake, please immediately notify the 
sender and permanently delete the original as well as any copy of any e-mail 
and any printout thereof.
We may monitor e-mail to and from our network.

NSS nv Tieltstraat 167 8740 Pittem Belgium 
___


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

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

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

This email sent to [EMAIL PROTECTED]