Hyper link text field overlap its text under box
I am implemented Hyperlink text filed, and It's doing its all functionality. But Under NSBox, It is giving me overlap text when User click on it. Here I have attached snapshot for same. If I am not using it within box, then it text does not overlap, but it is narrowed with some pixels. So, am i missing any property to set for Text filed ? 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Setting default button to Window containing box.
I came to know that setting alpha for box and window content view is rising this problem. I don't understand what is connection between setting alpha for view and box with default buttoncell. what should be done to avoid vibration for Mouse vibration. Thanks. On Sat, Aug 29, 2009 at 10:59 AM, Vijay Kanse wrote: > Hello list, > > My application have window containing button, box , ImageView and Labels. > box contains some text field and popup buttons. > I am making one Button as default button cell for Window, and running the > application, Mouse is Vibrating under the Application window Area. I tried > to set default button from Interface builder and I got same result. > > I am not getting why Mouse is Vibrating under window Area by setting > default button cell ? > > What could be the problem with assigning default button cell ? > > > 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Setting default button to Window containing box.
Hello list, My application have window containing button, box , ImageView and Labels. box contains some text field and popup buttons. I am making one Button as default button cell for Window, and running the application, Mouse is Vibrating under the Application window Area. I tried to set default button from Interface builder and I got same result. I am not getting why Mouse is Vibrating under window Area by setting default button cell ? What could be the problem with assigning default button cell ? 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Setting multi line Text to Radio button
Hello List, I want my radio buttons to have multi line text, and Title should have alignment like attached snapshot. I have tried to Set multi line text to check box with setting Attributed title, but I am not getting text alignment as per my requirement. So can any one tell me how is it possible to get multi line text to check box ? 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Adding NSMenuItem in IB
Sorry for My Question, Actually i was dragging NSMenu from Library and I was trying to Add it as Sub Menu. Thanks For guiding me right way. On Mon, Jun 1, 2009 at 2:49 PM, Kyle Sluder wrote: > On Mon, Jun 1, 2009 at 12:39 AM, Vijay Kanse > wrote: > > I am not able to drag NSMenu to main menu. and i am not able to do it by > > coding as well. > > Really? There's an Edit menu in the IB library which you should be > able to just drag to the main menu in your MainMenu.nib. If this > isn't working for you, please explain exactly what you're trying to > do. > > --Kyle Sluder > ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Adding NSMenuItem in IB
Hello List, I was customizing my Application Main Menu and I deleted "Edit menu" from Main Menu. Now My Application needs to add "Edit Menu" in Main Menu. I am not able to drag NSMenu to main menu. and i am not able to do it by coding as well. So, how can i add this Menu Item ? 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
NSButton not responding to click in worker thread
Hello All, I have separated my task on thread when my main thread is blocked. I am not able to find where my main thread is blocked. Separating my task on worker thread i am not able to get button click event. I think this is because of main thread is blocked. How can i find where my main thread is blocked ? or is there any solution to get button click event in worker thread while main thread is blocked ? After execution of worker thread , i am getting my main thread working and i am getting event of clicked button. 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Saving Address Book for more than 1000 recrods
Hello list, I tried simple program that add first name and last name to address book. I just loop it to 3000 times. I am saving the address book outside the loop. but when it executes its [book save] command, my application goes in to Not responding mode for few seconds. Then i tried to save it with a looping 3 times to 1000 records. and saving after each 1000 records. again i am getting my application in not responding mode after 1000 records saved. What should be the problem ? is This a behavior of address book for more than 1000 records ? if it is, how can i fix it? 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: NSTextField and clickable links
Thanks For your reply, I got it work now following thread : http://forums.macrumors.com/showthread.php?t=677713 Thanks. On Tue, Mar 31, 2009 at 9:02 PM, Brandon Walkin wrote: > http://developer.apple.com/qa/qa2006/qa1487.html > > It has to be selectable and allow editing text attributes. > > On 31-Mar-09, at 9:15 AM, Vijay Kanse wrote: > > Hello List, > > I have successfully set Url to text field with attributed strings. I am not > able to get hand cursor on textfield. > I am using this code for clickable link. >[thetextfield setAllowsEditingTextAttributes:YES]; >NSMutableAttributedString *attrstr = [[NSMutableAttributedString alloc] > initWithString:[thetextfield stringValue]]; >NSRange selectedRange = { 0, [[thetextfield stringValue] length] }; > >[attrstr beginEditing]; > >NSMutableDictionary *dictionary = [NSMutableDictionary dictionary]; >[dictionary setValue:[NSNumber numberWithInt:NSSingleUnderlineStyle] > forKey:NSUnderlineStyleAttributeName]; >[dictionary setValue:theurl forKey:NSLinkAttributeName]; >[dictionary setValue:[NSColor colorWithCalibratedRed:0.1 green: 0.1 > blue:1.0 alpha:1.0] forKey:NSForegroundColorAttributeName]; >[dictionary setValue:[NSCursor pointingHandCursor] > forKey:NSCursorAttributeName]; > >[attrstr addAttributes:dictionary range:selectedRange]; > >[attrstr endEditing]; > >[thetextfield setAttributedStringValue:attrstr]; > > I am getting all things o.k. > but i am not able to see hand icon on application start on textfield. > I tried to add a cursor on text field. > > [thetextfield addCursorRect:[thetextfield bounds] cursor:[NSCursor > pointingHandCursor]]; > > i write this methods in awakeFromNib. > > can any one tell me what is the problem with displaying Pointing Hand > Cursor > ? > am i missing to set any property for text field. > > text field displays hand cursor once i clicked on it and it changes its > fonts also. > > > any help will be appreciated. > > > 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/bwalkin%40gmail.com > > This email sent to bwal...@gmail.com > > > ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
NSTextField and clickable links
Hello List, I have successfully set Url to text field with attributed strings. I am not able to get hand cursor on textfield. I am using this code for clickable link. [thetextfield setAllowsEditingTextAttributes:YES]; NSMutableAttributedString *attrstr = [[NSMutableAttributedString alloc] initWithString:[thetextfield stringValue]]; NSRange selectedRange = { 0, [[thetextfield stringValue] length] }; [attrstr beginEditing]; NSMutableDictionary *dictionary = [NSMutableDictionary dictionary]; [dictionary setValue:[NSNumber numberWithInt:NSSingleUnderlineStyle] forKey:NSUnderlineStyleAttributeName]; [dictionary setValue:theurl forKey:NSLinkAttributeName]; [dictionary setValue:[NSColor colorWithCalibratedRed:0.1 green: 0.1 blue:1.0 alpha:1.0] forKey:NSForegroundColorAttributeName]; [dictionary setValue:[NSCursor pointingHandCursor] forKey:NSCursorAttributeName]; [attrstr addAttributes:dictionary range:selectedRange]; [attrstr endEditing]; [thetextfield setAttributedStringValue:attrstr]; I am getting all things o.k. but i am not able to see hand icon on application start on textfield. I tried to add a cursor on text field. [thetextfield addCursorRect:[thetextfield bounds] cursor:[NSCursor pointingHandCursor]]; i write this methods in awakeFromNib. can any one tell me what is the problem with displaying Pointing Hand Cursor ? am i missing to set any property for text field. text field displays hand cursor once i clicked on it and it changes its fonts also. any help will be appreciated. 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Binding NSMatrix to user Defaults
Hello List, I created NSMatrix contains two radio buttons. I am binding its selected index with shared user defaults. Now i want to make UI such that when user make first radio button ON it should enable one other radio button Matrix. and when user make second radio button OFF It should disable other radio button Matrix. So, how can i enable and disable the components within radio button Matrix ? 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Listening key board event while application in status bar
Hello, My application remains in system status bar. and i have three menu items with my application icon. I want to add key board listener for my application. so, if i press ctrl + shift + f12 then it should give me some event. the menu should not display this shortcut and menu item. is it possible to have such events keeping application in system status bar ? 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: MacOS X 10.4 and 10.5
I am also confused with that. Using project settings that above mentioned can we use MAC OS 10.5 SDK under 10.4 ? and if so, i am using CalCalendarStore framework that is available from 10.5. will that application work in MAC OS 10.4 ? if i compile, with Active SDK 10.4 it will give me some errors. same issue with property and synthesize. So, will this run successfully under MAC OS 10.4 and 10.5 ? Thanks. On Sun, Mar 1, 2009 at 1:04 AM, xEsk PiV wrote: > @ Paul Sanders > > Thanks. > > @ Shawn Erickson > > > (small nit on terminology... you don't run under an SDK) > > > > Yes* but only if you specify the (min) target OS as 10.4 and SDK as 10.5. > > > > Review... > > < > http://developer.apple.com/documentation/DeveloperTools/Conceptual/cross_development/HowItWorks/chapter_2_section_3.html > > > > Oh, ok. I'll take a look to docmentation (which is sooo extensive...) > > > Humm cannot find the doc I recall but the following outlines a way to > do what I think you are asking (note NSClassFromString())... > > > < > http://developer.apple.com/documentation/Cocoa/Conceptual/DisplayWebContent/Tasks/WebKitAvail.html#//apple_ref/doc/uid/20001846-171578 > > > > Don't worry. I'll also read this. > > Thank you! > ___ > > 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/vijay.kanse%40avinashi.com > > This email sent to vijay.ka...@avinashi.com > ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Setting cocoa application in system menu bar.
Hello, I need my application to set in system menu bar. I am able to set in menu bar. and i am getting all the events associated with application click menu. I stetted two click events on menu bar. openWindow and quit. on click of openWindow I am loading nib file. this nib contains multiple windows. -(void)openWIndow:(id)sender { [NSApplication sharedApplication]; [NSApp setDelegate:self]; [NSBundle loadNibNamed:"MainMenu" owner:self]; } it is only showing the windows which has mark true visible at launch in IB. and other window is showing their address 0x00 at a time of debugging. that means all the windows are not initialized. I am taking reference from: http://th30z.netsons.org/2008/10/cocoa-system-statusbar-item-aka-traybar/ 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Not able to update component in nib file
I have threee components in nib files NSButtonCell , NSTextField (As label) and NSProgressIndicator. It updates its value as i call the threads from the class in which they are used. but when i call threads from other classes i am not able to update their values. when i run the application in debug mode i came to know that all the components are released.but i have not released anywhere. and that is why they are not updating. can anyone tell me how can i resolve this problem? 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
problem with calendarstore framework when using it with Quicklite API for SQlite.
Hello, I am using quicklite API. And I included Framework Calendarstore. when I am running my program I got following Log in console and I am not able to run my application. Class QuickLiteCursor is implemented in both /System/Library/PrivateFrameworks/WhitePages.framework/Versions/A/WhitePages and /Users/ashvin/Desktop/SVN/Project-TestCal/build/Debug/TestCal.app/Contents/MacOS/TestCal. Using implementation from /Users/ashvin/Desktop/SVN/Project-TestCal/build/Debug/TestCal.app/Contents/MacOS/TestCal. objc[7170]: Class QuickLiteDatabase is implemented in both /System/Library/PrivateFrameworks/WhitePages.framework/Versions/A/WhitePages and /Users/ashvin/Desktop/SVN/Project-TestCal/build/Debug/TestCal.app/Contents/MacOS/TestCal. Using implementation from /Users/ashvin/Desktop/SVN/Project-TestCal/build/Debug/TestCal.app/Contents/MacOS/TestCal. objc[7170]: Class QuickLiteRow is implemented in both /System/Library/PrivateFrameworks/WhitePages.framework/Versions/A/WhitePages and /Users/ashvin/Desktop/SVN/Project-TestCal/build/Debug/TestCal.app/Contents/MacOS/TestCal. Using implementation from /Users/ashvin/Desktop/SVN/Project-TestCal/build/Debug/TestCal.app/Contents/MacOS/TestCal. I am not getting what the problem is. its look like there is problem when adding framework calendarstore with quickliteApi. 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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Prolem with CalCalendar programming
Hello All, I have two problems with calcalendar store framework programming. 1. I need all the event which are present in iCal calendar.Event may be present in year 2025 or 2050. and if the event is recurring then i need only one event. 2. if the event is recurring then i need only one event within the calendar event predicates (start date and end date). I am not suppose to give the occurrence date for event. suppose i have set one event that never ends and it repeates on Every day.when i am retriving events (giving start date as current date and end date as distantFuture) then I am able to get arround 1400 Events.but it actully never ends. I am not getting how the event is counted. And also when same event is set to every month then i am getting event array count around 50. so my question is up to distant future date i can get the events from calendar ? is it limited ? or can I get events those are set for year 2050 or 2090.? one more thing : Suppose i set the event daily and it never ends. And say i have deleted one or two of these events from calendar. is it possible for me to find that two event deleted ? 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/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
RE: setting image for person in address book
I am getting the Image set for the Person. I was Missing to write [NSURL URLWithString@"url path"]. Thank You. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kyle Sluder Sent: Monday, July 21, 2008 9:39 AM To: Vijay Kanse Cc: Heinrich Giesen; cocoa-dev@lists.apple.com Subject: Re: setting image for person in address book On Sun, Jul 20, 2008 at 11:40 PM, Vijay Kanse <[EMAIL PROTECTED]> wrote: > I have Tried initWithContentsOfURL. But I am getting exception. It's -initWithContentsOfURL, not -initWithContentOfURL: as your code seems to indicate. And in the future, if you are getting errors or exceptions, you need to paste those in; nobody on this list can read minds. --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [EMAIL PROTECTED]
RE: setting image for person in address book
I have Tried initWithContentsOfURL. But I am getting exception. NSData *imageData = [[NSData alloc] initWithContentOfURL:@" file://localhost/volumes/DATA/image/ > play.tiff "]; What Might be problem with That ? Is there any other problem with my code ? Thank You. -Original Message- From: Heinrich Giesen [mailto:[EMAIL PROTECTED] Sent: Saturday, July 19, 2008 6:24 PM To: cocoa-dev@lists.apple.com Cc: Vijay Kanse Subject: Re: setting image for person in address book On 19.07.2008, at 13:35, Vijay Kanse wrote: > NSData *imageData = [[NSData alloc] > initWithContentsOfFile:@"file://localhost/volumes/DATA/image/ > play.tiff"] > ; > I am tracing program and I am not getting any value in imageData. > In your program the parameter of -initWithContentsOfFile: is not a file, it's an URL. Try to read instead with -initWithContentsOfURL: -- Heinrich Giesen [EMAIL PROTECTED] ___ 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]
setting image for person in address book
Hello, I want to add the image with person in address book. I am Trying with the following code. NSData *imageData = [[NSData alloc] initWithContentsOfFile:@"file://localhost/volumes/DATA/image/play.tiff"] ; ABAddressBook *ab = [ABAddressBook sharedAddressBook]; ABPerson *person =[ [[ABPerson alloc] init] autorelease]; ...seting first and lastName; [person setImageData:imageData]; [ab addRecord:person]; [ab save]; I am tracing program and I am not getting any value in imageData. Can anyone tell me what is wrong with that code? Or How to set the image for person ? ___ 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]
Adding members to group in Address book
Hello, I want to add group and members to group in address book. I have done the following things. ABAddressBook*book = [ABAddressBook SharedAddressBook]; ABPerson *person; ABGroup *group = [[[ABGroup alloc] init] autorelease]; [group setValue:@"friend" forProperty:kABGroupNameProperty]; person = [[[ABPerson alloc] init] autorelease]; [person setValue:@"john" forProperty:kABFirstNameProperty]; [person setValue:@"ejks' forProperty:kABLastNameProperty]; [book addRecord: person]; [group addMember: person]; [book addRecord:group]; [book save]; I am not getting the group in address book. addMember and addRecord are returning value true. can anyone tell me what is the problem? ___ 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]