Send Cocoa-dev mailing list submissions to
        cocoa-dev@lists.apple.com

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.apple.com/mailman/listinfo/cocoa-dev
or, via email, send a message with subject or body 'help' to
        cocoa-dev-requ...@lists.apple.com

You can reach the person managing the list at
        cocoa-dev-ow...@lists.apple.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Cocoa-dev digest..."


Today's Topics:

  1. Carousel - like control for Mac OS (Nick)
  2. Re: Carousel - like control for Mac OS (Tom Hohensee)
  3. Account validation in CocoaTouch for the purchased app
     (Alexander Reichstadt)
  4. Lion: Batch close (Appa Rao Mulpuri)
  5. Re: Carousel - like control for Mac OS (Nick)
  6. Re: Carousel - like control for Mac OS (Nick)
  7. Re: Carousel - like control for Mac OS (Stephen J. Butler)
  8. Re: Carousel - like control for Mac OS (Nick)
  9. Re: Carousel - like control for Mac OS (Vincent Habchi)
 10. Re: Carousel - like control for Mac OS (Nick)
 11. Re: Example code eyePhoto-Step8 & IB help needed (Eric Matecki)
 12. Re: Carousel - like control for Mac OS (Olivier Palliere)


----------------------------------------------------------------------

Message: 1
Date: Tue, 20 Dec 2011 23:00:23 +0200
From: Nick <eveningn...@gmail.com>
Subject: Carousel - like control for Mac OS
To: cocoa-dev Dev <cocoa-dev@lists.apple.com>
Message-ID:
        <capzgeseo3cbk2ofkztpjsett4abbw5b5t4pyxvqfj+kt1tr...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Hello
I am wondering, if a component exists similar to this
http://www.ajaxdaddy.com/demo-jquery-carousel.html
for Mac OS.

Basically, what I need is just "next" and "previous" buttons (and
these images smoothly scrolled one image per "next" or "prev" button
click).

At the moment I am trying to implement it on my own.
This seems to be a simple NSScrollView with hidden scroll bars whose
inner view has these image views added as subviews.

However, I am not sure how to implement smooth scrolling of one image
per click. I guess I need to use Core Animation?
Are there any simple examples that I could look at?


------------------------------

Message: 2
Date: Tue, 20 Dec 2011 15:13:40 -0600
From: Tom Hohensee <tom.hohen...@gmail.com>
Subject: Re: Carousel - like control for Mac OS
To: Nick <eveningn...@gmail.com>
Cc: cocoa-dev Dev <cocoa-dev@lists.apple.com>
Message-ID: <3fa582d3-ff4c-4490-8b20-85de59168...@gmail.com>
Content-Type: text/plain;       charset=us-ascii

Have a look at iCarousel.  Has a port for iOS as well as Mac OS.  
This can be done with ImageKit in IB as well.  Just disable the scroll view and 
setup forward and back buttons that call the image index (nextIndex, etc). See 
imageKit docs.

Tom


On Dec 20, 2011, at 3:00 PM, Nick wrote:

> Hello
> I am wondering, if a component exists similar to this
> http://www.ajaxdaddy.com/demo-jquery-carousel.html
> for Mac OS.
> 
> Basically, what I need is just "next" and "previous" buttons (and
> these images smoothly scrolled one image per "next" or "prev" button
> click).
> 
> At the moment I am trying to implement it on my own.
> This seems to be a simple NSScrollView with hidden scroll bars whose
> inner view has these image views added as subviews.
> 
> However, I am not sure how to implement smooth scrolling of one image
> per click. I guess I need to use Core Animation?
> Are there any simple examples that I could look at?
> _______________________________________________
> 
> 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/tom.hohensee%40gmail.com
> 
> This email sent to tom.hohen...@gmail.com



------------------------------

Message: 3
Date: Tue, 20 Dec 2011 23:26:04 +0100
From: Alexander Reichstadt <l...@mac.com>
Subject: Account validation in CocoaTouch for the purchased app
To: Cocoa-Dev List <Cocoa-dev@lists.apple.com>
Message-ID: <a29811c6-ac4c-4669-8791-076f017e0...@mac.com>
Content-Type: text/plain; CHARSET=US-ASCII

Hi,

given an app is sold on iTunes, is there a way for that app to find out which 
email address was used for the iTunes account when it was purchased?

Thanks
Alex



------------------------------

Message: 4
Date: Wed, 21 Dec 2011 06:00:28 +0000
From: Appa Rao Mulpuri <appar...@ivycomptech.com>
Subject: Lion: Batch close
To: "cocoa-dev@lists.apple.com" <cocoa-dev@lists.apple.com>
Message-ID: <cb177372.4c7e%appar...@ivycomptech.com>
Content-Type: text/plain; charset="us-ascii"

Hi,

My application is crashing on Lion if user tries to close all open windows 
using Option key + Mouse click. Same is working in Leopard and Snow leopard. Is 
anything is changed related to Batch Close in Lion? Any work around for  this?

- Apparao
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.



------------------------------

Message: 5
Date: Wed, 21 Dec 2011 09:48:16 +0200
From: Nick <eveningn...@gmail.com>
Subject: Re: Carousel - like control for Mac OS
To: Tom Hohensee <tom...@me.com>
Cc: cocoa-dev Dev <cocoa-dev@lists.apple.com>
Message-ID:
        <CAPZGeSE7kABgmJzvn3KB38LrhjMs0_7e=c6hsk_wpcoasjz...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Thanks!

2011/12/20 Tom Hohensee <tom...@me.com>:
> Have a look at iCarousel.  Has a port for iOS as well as Mac OS.
> 
> Tom
> 
> On Dec 20, 2011, at 3:00 PM, Nick wrote:
> 
> Hello
> I am wondering, if a component exists similar to this
> http://www.ajaxdaddy.com/demo-jquery-carousel.html
> for Mac OS.
> 
> Basically, what I need is just "next" and "previous" buttons (and
> these images smoothly scrolled one image per "next" or "prev" button
> click).
> 
> At the moment I am trying to implement it on my own.
> This seems to be a simple NSScrollView with hidden scroll bars whose
> inner view has these image views added as subviews.
> 
> However, I am not sure how to implement smooth scrolling of one image
> per click. I guess I need to use Core Animation?
> Are there any simple examples that I could look at?
> _______________________________________________
> 
> 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/tomhoh%40mac.com
> 
> This email sent to tom...@mac.com
> 
> 


------------------------------

Message: 6
Date: Wed, 21 Dec 2011 10:09:29 +0200
From: Nick <eveningn...@gmail.com>
Subject: Re: Carousel - like control for Mac OS
To: Tom Hohensee <tom...@me.com>
Cc: cocoa-dev Dev <cocoa-dev@lists.apple.com>
Message-ID:
        <capzgese99mruicptg2iaphvrebqzdwhwvk59fp6yqu8x_lc...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Unfortunately, on Mac OS this control does not support click on items
detection, which makes it useless on Macs.

from README.md:
"On Mac OS there is no easy way to detect clicks on carousel items
currently. You cannot just supply an NSButton as or inside your item
view because the transforms applied to the item views mean that hit
detection doesn't work properly. I'm investigating possible solutions
to this (if you know a good way to fix this, please get in touch, or
fork the project on github)."


2011/12/20 Tom Hohensee <tom...@me.com>:
> Have a look at iCarousel.  Has a port for iOS as well as Mac OS.
> 
> Tom
> 
> On Dec 20, 2011, at 3:00 PM, Nick wrote:
> 
> Hello
> I am wondering, if a component exists similar to this
> http://www.ajaxdaddy.com/demo-jquery-carousel.html
> for Mac OS.
> 
> Basically, what I need is just "next" and "previous" buttons (and
> these images smoothly scrolled one image per "next" or "prev" button
> click).
> 
> At the moment I am trying to implement it on my own.
> This seems to be a simple NSScrollView with hidden scroll bars whose
> inner view has these image views added as subviews.
> 
> However, I am not sure how to implement smooth scrolling of one image
> per click. I guess I need to use Core Animation?
> Are there any simple examples that I could look at?
> _______________________________________________
> 
> 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/tomhoh%40mac.com
> 
> This email sent to tom...@mac.com
> 
> 


------------------------------

Message: 7
Date: Wed, 21 Dec 2011 02:14:51 -0600
From: "Stephen J. Butler" <stephen.but...@gmail.com>
Subject: Re: Carousel - like control for Mac OS
To: Nick <eveningn...@gmail.com>
Cc: cocoa-dev Dev <cocoa-dev@lists.apple.com>
Message-ID:
        <CAD4ANxV0vRtimdDwOwpnn8Nhew0KAxr_Dm-DQntm_5CFT4C=4...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Tue, Dec 20, 2011 at 3:00 PM, Nick <eveningn...@gmail.com> wrote:
> Hello
> I am wondering, if a component exists similar to this
> http://www.ajaxdaddy.com/demo-jquery-carousel.html
> for Mac OS.
> 
> Basically, what I need is just "next" and "previous" buttons (and
> these images smoothly scrolled one image per "next" or "prev" button
> click).

This is an awful lot like the coverflow animation/display. Are you
sure that coverflow wouldn't be more appropriate for OS X?


------------------------------

Message: 8
Date: Wed, 21 Dec 2011 10:30:08 +0200
From: Nick <eveningn...@gmail.com>
Subject: Re: Carousel - like control for Mac OS
To: "Stephen J. Butler" <stephen.but...@gmail.com>
Cc: cocoa-dev Dev <cocoa-dev@lists.apple.com>
Message-ID:
        <capzgeseb_fe3kbkkoq5rycjhmssf4zdk9+k7f1kybgagzpj...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Coverflow seems to be even more difficult to implement than just a
simple smoothly scrollable strip with clickable items. Coverflow can
be implemented using this iCarousel, but, again, with non-clickable
items.
And then, I do not have much space on the window to put this
coverflow (while a strip can be small and still look good), plus a
strip can display more than 1 item at once, and the user can click on
any of these items without too much of scrolling).

2011/12/21 Stephen J. Butler <stephen.but...@gmail.com>:
> On Tue, Dec 20, 2011 at 3:00 PM, Nick <eveningn...@gmail.com> wrote:
>> Hello
>> I am wondering, if a component exists similar to this
>> http://www.ajaxdaddy.com/demo-jquery-carousel.html
>> for Mac OS.
>> 
>> Basically, what I need is just "next" and "previous" buttons (and
>> these images smoothly scrolled one image per "next" or "prev" button
>> click).
> 
> This is an awful lot like the coverflow animation/display. Are you
> sure that coverflow wouldn't be more appropriate for OS X?


------------------------------

Message: 9
Date: Wed, 21 Dec 2011 10:01:31 +0100
From: Vincent Habchi <vi...@macports.org>
Subject: Re: Carousel - like control for Mac OS
To: Nick <eveningn...@gmail.com>
Cc: cocoa-dev Dev <cocoa-dev@lists.apple.com>
Message-ID: <83db4540-0cdf-4a89-bbb1-0ef7140d4...@macports.org>
Content-Type: text/plain; charset=windows-1252

> And then, I do not have much space on the window to put this
> coverflow (while a strip can be small and still look good), plus a
> strip can display more than 1 item at once, and the user can click on
> any of these items without too much of scrolling).

Why don‚t you use CALayers (more specifically a CATileLayer and sublayers 
containing your images)?

Vincent

------------------------------

Message: 10
Date: Wed, 21 Dec 2011 11:22:14 +0200
From: Nick <eveningn...@gmail.com>
Subject: Re: Carousel - like control for Mac OS
To: Vincent Habchi <vi...@macports.org>, Tom Hohensee <tom...@me.com>,
        "Stephen J. Butler" <stephen.but...@gmail.com>
Cc: cocoa-dev Dev <cocoa-dev@lists.apple.com>
Message-ID:
        <capzgesebxmdnoejzjskj1r92y-a0uahaesg+qn223ba+lw0...@mail.gmail.com>
Content-Type: text/plain; charset=windows-1252

I am not sure how to do this.
Currently, I have an NSScrollView (whose document view has all the
item views), with hidden scroll bars, and buttons "next" and
"previous". When "next" and "prev"  are clicked, I -scrollToPoint
NSScrollView's content view a bit to the right or to the left.
It seems to be working as I need, except that it doesn't scroll
smoothly (I guess I need to use somehow). I suppose I need to attach a
core animation layer to NSScrollView? Or use somehow CAScrollView?
I've never worked with Core Animation before, except using animator
"proxy", however
[[[[myscrollview] contentView] animator] scrollToPoint:nextPoint];
doesn't add any animation..
What would be the quickest way to make it work?

2011/12/21 Vincent Habchi <vi...@macports.org>:
>> And then,  I do not have much space on the window to put this
>> coverflow (while a strip can be small and still look good), plus a
>> strip can display more than 1 item at once, and the user can click on
>> any of these items without too much of scrolling).
> 
> Why don‚t you use CALayers (more specifically a CATileLayer and sublayers 
> containing your images)?
> 
> Vincent


------------------------------

Message: 11
Date: Wed, 21 Dec 2011 10:35:59 +0100
From: Eric Matecki <eml...@wanadoo.fr>
Subject: Re: Example code eyePhoto-Step8 & IB help needed
To: undisclosed-recipients: ;
Cc: "cocoa-dev@lists.apple.com >> Cocoa-Dev List"
        <cocoa-dev@lists.apple.com>
Message-ID: <4ef1a87f.9060...@wanadoo.fr>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 20/12/11 17:48, Laurent Daudelin wrote:
> On Dec 20, 2011, at 06:03, Eric Matecki wrote:
> 
>> Hi,
>> 
>> I'm new to IB.
>> 
>> I'm trying to find by which magic "NSWindow * imageCaptureWindow;",
>> member of "@interface Controller : NSWindowController",
>> gets initialized by the following code :
>> [NSBundle loadNibNamed: @"ImageCapture" owner: self];
>> 
>> This variable isn't initialized anywhere in the code, so it must be IB
>> which does it.  But, contrary to the window's views, it isn't even an 
>> IBOutlet.
>> 
>> The only connection/binding/whatever I can see in IB for this window is
>> the delegate to "point to" the owner, which is the previously mentionned 
>> Controller.
>> 
>> Also, for the "Device Browser View", where in IB can I find how "mode" is 
>> set to "IKDeviceBrowserViewDisplayModeTable" ?
>> 
>> I (think I) do understand how bindings works, but not how to retrieve the 
>> pertinent information in IB...
>> 
>> Any help would be appreciated, IB is so mysterious to me !
> 
> Salut Eric.
> 
> I'm sure that there are some who will be able to better explain it than 
> myself but, to make a long story short, when you call loadNIbNamed:, the 
> method will connect all the instance variables of the "owner" that you have 
> declared to be IB outlets with the UI objects that you did create in IB, 
> after they are instantiated. How does the method do that? If they are no 
> setter for a particular ivar, it will just set the ivar directly. This is 
> also probably explained in the documentation.
> 
> HTH!
> 
> -Laurent.

Salut Laurent,

that's what I did understand, but...

Somewhere in IB I should find the name of that instance variable 
("imageCaptureWindow"),
so loadNibNamed: knows *which* variable to assign to, which I don't find.
To establish myself a connection, the instance variable has to have the 
IBOutlet attribute,
which "imageCaptureWindow" lacks.

Let's look at the scannerView. The ivar is declared as "IBOutlet 
IKScannerDeviceView * scannerView",
and in IB I can see a connection in "Referencing Outlets", that's called 
"scannerView", of/to the "File's Owner".
That's clear to me.
I expect to find something similar for the window, but I don't...

Yet it works... but I can't figure out how.

Thanks.

-- 
Keep intel OUTSIDE my Mac !
Hiii !!! I can see Intel chips creeping around my G5 !

Eric M.


------------------------------

Message: 12
Date: Wed, 21 Dec 2011 11:15:39 +0100
From: Olivier Palliere <oliv...@sunprotectingfactory.com>
Subject: Re: Carousel - like control for Mac OS
To: Nick <eveningn...@gmail.com>
Cc: Tom Hohensee <tom...@me.com>, cocoa-dev Dev
        <cocoa-dev@lists.apple.com>
Message-ID:
        <8df85ddb-936d-4764-a21c-122441ca4...@sunprotectingfactory.com>
Content-Type: text/plain; charset=windows-1252

HI Nick,

In my app, I have two IKImageBrowserView subclasses (thumbnailsBrowser) that I 
populate with the pictures I need. It supports scrolling out of the box with 
the mouse or trackpad when needed. For one of my subclass, I resize the popover 
because it can only have up to 5 pictures in it, so I in fact disable 
scrolling. The other one however, can have up to 50 images, so to also allow 
scrolling with clicking a button, I wired two NSButton to this method:


- (IBAction)coverBrowserGo:(id)sender
{

   NSIndexSet *currentlyVisible = [thumbnailsBrowser visibleItemIndexes];

   if(debugging)
       NSLog(@"current IndexSet: %@", currentlyVisible);


   if ([sender tag] == 0) //Go Left
   {
       // Are we already showing the first item?
        if ([currentlyVisible firstIndex]==0)
           return;

       [thumbnailsBrowser scrollIndexToVisible:[currentlyVisible firstIndex] 
-1];

   }
   else //Go Right
   {
       if(debugging)
       {
           NSLog(@"resultMatchArray: %lu", [resultMatchArray count]);
           NSLog(@"lastIndex: %lu", [currentlyVisible lastIndex]);
       }

       // Are we already showing the last item?
        if ([currentlyVisible lastIndex]+1==[resultMatchArray count])
           return;

       [thumbnailsBrowser scrollIndexToVisible:[currentlyVisible lastIndex] +1];

   }
}

To support clicking on an image, I have two choices. In one case I add the 
IKImageBrowserController delegate method, where I can then get the index of the 
currently selected index for aBrowser:

- (void) imageBrowserSelectionDidChange:(IKImageBrowserView *)aBrowser;

In the other case, I subclass the mouseUp method in my IKImageBrowserView 
subclass, then pass data back to the delegate:

- (void) mouseUp:(NSEvent*)inEvent
{

   id delegate = self.delegate;
   if (delegate)
   {
       NSPoint mouse = [self convertPoint:[inEvent locationInWindow] 
fromView:nil];
       NSInteger objectIndex = [self indexOfItemAtPoint: mouse];

       if (objectIndex == NSNotFound)
           [delegate toggleCoverFloatingWindow:nil];
       else
           [delegate displayCoverFloatingWindow: objectIndex];

   }

   [super mouseUp:inEvent];

}

Hope that helps,
Olivier./.
Molowa.

On Dec 21, 2011, at 10:22 AM, Nick wrote:

> I am not sure how to do this.
> Currently, I have an NSScrollView (whose document view has all the
> item views), with hidden scroll bars, and buttons "next" and
> "previous". When "next" and "prev"  are clicked, I -scrollToPoint
> NSScrollView's content view a bit to the right or to the left.
> It seems to be working as I need, except that it doesn't scroll
> smoothly (I guess I need to use somehow). I suppose I need to attach a
> core animation layer to NSScrollView? Or use somehow CAScrollView?
> I've never worked with Core Animation before, except using animator
> "proxy", however
> [[[[myscrollview] contentView] animator] scrollToPoint:nextPoint];
> doesn't add any animation..
> What would be the quickest way to make it work?
> 
> 2011/12/21 Vincent Habchi <vi...@macports.org>:
>>> And then,  I do not have much space on the window to put this
>>> coverflow (while a strip can be small and still look good), plus a
>>> strip can display more than 1 item at once, and the user can click on
>>> any of these items without too much of scrolling).
>> 
>> Why don‚t you use CALayers (more specifically a CATileLayer and sublayers 
>> containing your images)?
>> 
>> Vincent
> _______________________________________________
> 
> Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
> 
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
> 
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/cocoa-dev/olivier%40sunprotectingfactory.com
> 
> This email sent to oliv...@sunprotectingfactory.com



------------------------------

_______________________________________________

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

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

http://lists.apple.com/mailman/listinfo/cocoa-dev


End of Cocoa-dev Digest, Vol 8, Issue 979
*****************************************
_______________________________________________

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

Reply via email to