tailieunhanh - iPhone Design Award-Winning Projects phần 8

Tôi muốn có nó để không ai phải làm bất cứ công việc phụ để sử dụng các ứng dụng không có bản cập nhật, không có gì dọc theo những dòng. Tôi đã có để tạo ra một Growl plug-in, được tích hợp loại liên tục. Nhưng có thực sự không có cách nào tiêu chuẩn làm những gì tôi đã được sau khi có một MMS plug-in, | CHAPTER 10 Q A Prowl 135 Why use Growl I wanted it so that nobody had to do any extra work to use the application no updates nothing along those lines. I had to create a Growl plug-in which integrated kind of seamlessly. But there was really no standard way of doing what I was after there is an MMS plug-in but it wasn t quite the same paradigm. So I really wanted to just have it be a part that slapped into Growl without any extra work involved for the user mostly because I think that would be easier for everybody but also because it lets anything that uses Growl also use Prowl without any modifications or redistributions. And what s great is that the Windows Growl clone Snarl and Growl for Windows also adopted the ability to use Prowl. It pretty much just expanded to every operating system without really any programs having to be written for it. How does the plug-in work It declares itself as a style which in Growl the notifications are received from the application and then Growl itself will redisplay the notification on the screen to the user. When Prowl receives the notification for display it checks its preferences and then tells another plug-in to do the actual display while it goes ahead and sends to the Growl server so it kind of works itself as a middle man between another Growl style and itself. But one important limitation is that Growl can only display one particular display style or plug-in for a particular message so in order to avoid Prowl being the most annoying program ever and sending every notification only to the iPhone you have to do a little hacking around kind of exploiting how Growl works to allow the messages to be displayed multiple times on the computer and iPhone . How do you hack it Growl plug-ins are very simple. Basically you just have a few parts one that talks to Growl one that sets up the preference window and another one that does the actual displaying. I looked at some of the other plug-ins and kind of just went from there. It was