Post

Replies

Boosts

Views

Activity

Where Xcode expects to find dylib
Hi, ALL, This thread comes from the one here - https://developer.apple.com/forums/thread/659482?login=true&page=1#631376022 The question now becomes - where Xcode expects to find dylib files? Running the bundle from the Terminal the default place is /usr/local/lib. You can create a post-build script to copy them in the bundle and relink them as appropriate. But that doesn't help with Xcode. I also want to know who is responsible to copy those dylibs to that place. Because during development people needs to update their dylibs. Could someone please sched some light? Its painful not to be able to debug from Xcode and do manual work in Terminal. Thank you. '
4
0
1.7k
Sep ’20
Maximum text length
Hi, ALL, Is there a way to have maximum text length in NSTextView? My scenario: I have NSTextView whose text will go into the DB. Since DB column is fixed size, I'd like to prevent the user to type more characters than needs to be. Thank you.
2
0
1.2k
Sep ’20
Debugging the program in Xcode
Hi, ALL, I have a weird problem. When I started working on my project I had a laptop with OSX 10.8. I installed Xcode 5 and everything was good. I was able to run the program from the Xcode and everything was working fine. However recently I bought myself a newer Apple laptop with OSX 10.13. I installed Xcode 9.4.1, cloned my repository, opened the xcodeproject, compiled it and tried to run it. Unfortunately the program failed to start. All I see that it stops somewhere in the assembly code, even before hitting any source code I wrote. However when I open the Terminal and do: open my_program.app I am able to execute it without any issues. I am also able to run the program from both Xcode and the Terminal when I update the code on my old laptop. My question would be - what I need to do in order to start working inside Xcode and not keep switching between IDE and the Terminal for testing? Thank you.
5
0
937
Sep ’20
NSOutlineView with 2 columns
Hi, ALL,I am developing an application and I need to create NSOutlineView. I need it to look like the List Control (not a Tree Control). I need the control to not to have the column header. I also need the control to have 2 columns as follows:Second column will have a constant width (lets say 100 - this is not the actual width). It will be permanent for all rows in control.First column (the leftmost one) will have a width of (view_width - width_of_second_column).First column will contain the strings of the different width. The second column will contain the checkbox with the labelThere will be no horizontal scrollbar visible - the strings will be short enough to fit in the column.And as I said before - the control will not have a column header.Is creating such control with such layout possible?My understanding is that I can do something like this:[m_OutlineView setColumnAutoresizingStyle:NSTableViewSequentialColumnAutoresizingStyle];[column resizingMask:NSTableColumnAutoresizingMask];[m_OutlineView sizeToFit];but when I tried it - it didn't work.My guess is that this is because the control does not have a visible header for columns.Am I wrong?Or I am doing something wrong with the code?Thank you in advance.
1
0
589
Jun ’20
Distributing the software
Hi, All,I am developing the project on my Mac with the Xcode.The project consists of one executable binary, couple of dylibs created by me and a 3rd party libraries which is given by the way of dylib files.My question would be following: - Is there a way to incorporate all those dylibs (mine and 3rd party) into the Application Bundle, so that all I will need to do is crate a Bundle inside the Xcode and ship it when I'm done? - If there is one - could you provide a step-by-step instructions on how to do that? I am running the OSX 10.13.6 with the Xcode 9.4.1. - If there is none - what is the way to distribute the libraries with the Bundle. Again - I'd like to get an instructions on how to do that.Thank you.P.S.: Application is created with Objective-C/Cocoa/C++.
1
0
498
Jun ’20
sizing a cell in the NSOutlineView
Hi, ALL,Is it possible to customize a cell in the NSOutlineView?Namely I'm looking for:1. Making the column that contains text occupy all available space inside the control. The view will be rendered without a header, so no title and no possibility of resizing.2. Set the alignment for the content [left/center/right]-justified text/image/controls inside the cell.As far as I understand, by default the column is set to fit the content of the cells underneath and will resize itself if the data added will be wider.Thank you.
1
0
611
Feb ’20